summaryrefslogtreecommitdiff
path: root/src/engine_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-07-26 22:00:59 +0000
committerfrosch <frosch@openttd.org>2008-07-26 22:00:59 +0000
commitef208241aba2efdb9758bbe11d3f4a7c87347bee (patch)
treea987c601962f070fc22977351feff696bc0daa4a /src/engine_gui.cpp
parent0e91a2f52fd39c705bc1a35d20aef005db578c40 (diff)
downloadopenttd-ef208241aba2efdb9758bbe11d3f4a7c87347bee.tar.xz
(svn r13844) -Fix (r13074, r13591): Power, running cost and capacity of multiheaded engines were (too often) doubled in newspaper resp. offer window.
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index fbe744c2f..948e61a82 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -137,15 +137,15 @@ static void DrawTrainEngineInfo(EngineID engine, int x, int y, int maxw)
SetDParam(0, (_price.build_railvehicle >> 3) * GetEngineProperty(engine, 0x17, rvi->base_cost) >> 5);
SetDParam(2, GetEngineProperty(engine, 0x09, rvi->max_speed) * 10 / 16);
- SetDParam(3, GetEngineProperty(engine, 0x0B, rvi->power) << multihead);
+ SetDParam(3, GetEngineProperty(engine, 0x0B, rvi->power));
SetDParam(1, GetEngineProperty(engine, 0x16, rvi->weight) << multihead);
- SetDParam(4, GetEngineProperty(engine, 0x0D, rvi->running_cost) * GetPriceByIndex(rvi->running_cost_class) >> 8 << multihead);
+ SetDParam(4, GetEngineProperty(engine, 0x0D, rvi->running_cost) * GetPriceByIndex(rvi->running_cost_class) >> 8);
uint capacity = GetTotalCapacityOfArticulatedParts(engine, VEH_TRAIN);
if (capacity != 0) {
SetDParam(5, rvi->cargo_type);
- SetDParam(6, capacity << multihead);
+ SetDParam(6, capacity);
} else {
SetDParam(5, CT_INVALID);
}