diff options
author | peter1138 <peter1138@openttd.org> | 2006-10-20 19:48:25 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-10-20 19:48:25 +0000 |
commit | df8b06dec6b999aa3901787ec664899b5e6f7074 (patch) | |
tree | 48fd84eccf2c748dcfa67f2c508ad836d3d47088 /engine_gui.c | |
parent | 6d2c7b4fdf07692be6d39dcccc32f8134d868797 (diff) | |
download | openttd-df8b06dec6b999aa3901787ec664899b5e6f7074.tar.xz |
(svn r6858) - Fix (r6855): Handle rail vehicles with no capacity (N/A) by setting cargo type to CT_INVALID and handling it later. STR_8838_N_A is not a valid cargo type...
Diffstat (limited to 'engine_gui.c')
-rw-r--r-- | engine_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine_gui.c b/engine_gui.c index 90ea19140..f328d422e 100644 --- a/engine_gui.c +++ b/engine_gui.c @@ -139,7 +139,7 @@ static void DrawTrainEngineInfo(EngineID engine, int x, int y, int maxw) SetDParam(5, rvi->cargo_type); SetDParam(6, rvi->capacity << multihead); } else { - SetDParam(5, STR_8838_N_A); + SetDParam(5, CT_INVALID); } DrawStringMultiCenter(x, y, STR_VEHICLE_INFO_COST_WEIGHT_SPEED_POWER, maxw); } |