diff options
author | rubidium <rubidium@openttd.org> | 2009-01-11 14:01:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-11 14:01:45 +0000 |
commit | 1ef953e4a557e14cae3ee53c002c0a10c13e73d0 (patch) | |
tree | 41fed3d8a4029976851b7b9a6663a0ab51a3bd27 /src/autoreplace_gui.cpp | |
parent | 78d3fc59b9491603fff987eff6c354779d3c0bd5 (diff) | |
download | openttd-1ef953e4a557e14cae3ee53c002c0a10c13e73d0.tar.xz |
(svn r14989) -Codechange: remove a lookup table by reordering some items in english.txt (Swallow)
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index 5e570d898..2e6558956 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -253,13 +253,6 @@ public: virtual void OnPaint() { - static const StringID _vehicle_type_names[] = { - STR_019F_TRAIN, - STR_019C_ROAD_VEHICLE, - STR_019E_SHIP, - STR_019D_AIRCRAFT - }; - if (this->update_left || this->update_right) this->GenerateLists(); Company *c = GetCompany(_local_company); @@ -287,7 +280,7 @@ public: !EngineHasReplacementForCompany(c, selected_id[0], selected_group)); /* now the actual drawing of the window itself takes place */ - SetDParam(0, _vehicle_type_names[this->window_number]); + SetDParam(0, STR_019F_TRAIN + this->window_number); if (this->window_number == VEH_TRAIN) { /* set on/off for renew_keep_length */ |