diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-25 14:46:32 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-25 14:46:32 +0000 |
commit | d69589b3c2c1844a966ea47c568f27b86d60ce8a (patch) | |
tree | aa01bc9f5e83f354abe440316e280459e85e0fa9 /src/train_gui.cpp | |
parent | eb6594caa840da0b4d8a16154cc2c0353d3eb238 (diff) | |
download | openttd-d69589b3c2c1844a966ea47c568f27b86d60ce8a.tar.xz |
(svn r10324) -Codechange: reference engine names by index
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 78b48bbe0..4d6c81bad 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -342,11 +342,11 @@ static void TrainDetailsCargoTab(const Vehicle *v, int x, int y) static void TrainDetailsInfoTab(const Vehicle *v, int x, int y) { if (RailVehInfo(v->engine_type)->railveh_type == RAILVEH_WAGON) { - SetDParam(0, GetCustomEngineName(v->engine_type)); + SetDParam(0, v->engine_type); SetDParam(1, v->value); DrawString(x, y, STR_882D_VALUE, 0x10); } else { - SetDParam(0, GetCustomEngineName(v->engine_type)); + SetDParam(0, v->engine_type); SetDParam(1, v->build_year); SetDParam(2, v->value); DrawString(x, y, STR_882C_BUILT_VALUE, 0x10); |