diff options
author | frosch <frosch@openttd.org> | 2014-06-10 16:37:25 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-06-10 16:37:25 +0000 |
commit | 1b0929a9f04d94d40962cf49a682f1e3f8f800fd (patch) | |
tree | c959248f6820bc4946b8eea8b2173e72478652bc /src/object_gui.cpp | |
parent | 4d2107bd618ea56e5ee0ac1e7db1aa0b88b6551d (diff) | |
download | openttd-1b0929a9f04d94d40962cf49a682f1e3f8f800fd.tar.xz |
(svn r26640) -Cleanup: Remove some pointless STR_JUST_STRING detours.
Diffstat (limited to 'src/object_gui.cpp')
-rw-r--r-- | src/object_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp index f0dbd0dc2..c55041886 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -211,8 +211,7 @@ public: ObjectClass *objclass = ObjectClass::Get((ObjectClassID)i); if (objclass->GetUISpecCount() == 0) continue; if (!this->vscroll->IsVisible(pos++)) continue; - SetDParam(0, objclass->name); - DrawString(r.left + WD_MATRIX_LEFT, r.right - WD_MATRIX_RIGHT, y + WD_MATRIX_TOP, STR_JUST_STRING, + DrawString(r.left + WD_MATRIX_LEFT, r.right - WD_MATRIX_RIGHT, y + WD_MATRIX_TOP, objclass->name, ((int)i == _selected_object_class) ? TC_WHITE : TC_BLACK); y += this->line_height; } |