diff options
author | rubidium <rubidium@openttd.org> | 2010-01-15 22:21:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-15 22:21:50 +0000 |
commit | 879668811c88f153e4f9e867146e7dd813377bc6 (patch) | |
tree | edda138a3a9b2044491df7027876dc519390b947 /src/vehicle_gui.cpp | |
parent | 31d1e9c051f6170282f027fe8b040e9ea6f3f143 (diff) | |
download | openttd-879668811c88f153e4f9e867146e7dd813377bc6.tar.xz |
(svn r18818) -Fix [FS#3526] (r18766): some train acceleration type conversions were missed
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index c0a0011e5..75d5a56b3 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1532,7 +1532,7 @@ struct VehicleDetailsWindow : Window { SetDParam(1, Train::From(v)->tcache.cached_power); SetDParam(0, Train::From(v)->tcache.cached_weight); SetDParam(3, Train::From(v)->tcache.cached_max_te / 1000); - DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, (_settings_game.vehicle.train_acceleration_model != TAM_ORIGINAL && Train::From(v)->railtype != RAILTYPE_MAGLEV) ? + DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, (_settings_game.vehicle.train_acceleration_model != TAM_ORIGINAL && GetRailTypeInfo(Train::From(v)->railtype)->acceleration_type != 2) ? STR_VEHICLE_INFO_WEIGHT_POWER_MAX_SPEED_MAX_TE : STR_VEHICLE_INFO_WEIGHT_POWER_MAX_SPEED); break; |