diff options
author | peter1138 <peter1138@openttd.org> | 2006-10-05 11:26:59 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-10-05 11:26:59 +0000 |
commit | cdfac3d7b74e0ef019e4833130dba99af058b93a (patch) | |
tree | ca4ece70915234332e983255532d562a32faaced /train_gui.c | |
parent | 16271dfaaccddafd8bd349e6345378417823a87e (diff) | |
download | openttd-cdfac3d7b74e0ef019e4833130dba99af058b93a.tar.xz |
(svn r6649) - Codechange: Show more correct capacity of articulated wagons in the train purchase list.
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c index 57b824835..470633688 100644 --- a/train_gui.c +++ b/train_gui.c @@ -66,7 +66,7 @@ void DrawTrainEnginePurchaseInfo(int x, int y, EngineID engine_number) SetDParam(2, STR_EMPTY); if (rvi->capacity != 0) { SetDParam(0, _cargoc.names_long[rvi->cargo_type]); - SetDParam(1, rvi->capacity << multihead); + SetDParam(1, (rvi->capacity * (CountArticulatedParts(engine_number) + 1)) << multihead); SetDParam(2, STR_9842_REFITTABLE); } DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); @@ -114,7 +114,7 @@ void DrawTrainWagonPurchaseInfo(int x, int y, EngineID engine_number) SetDParam(2, STR_EMPTY); if (rvi->capacity != 0) { SetDParam(0, _cargoc.names_long[rvi->cargo_type]); - SetDParam(1, rvi->capacity); + SetDParam(1, rvi->capacity * (CountArticulatedParts(engine_number) + 1)); SetDParam(2, refittable ? STR_9842_REFITTABLE : STR_EMPTY); } DrawString(x, y, STR_PURCHASE_INFO_CAPACITY, 0); |