summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-01-23 20:01:04 +0000
committerbjarni <bjarni@openttd.org>2007-01-23 20:01:04 +0000
commit5a47d116893ec978bc9a8b884a7c88b69d1901e5 (patch)
treeff6316713c087feb10f17ea6070a830b2648f01e
parentc6e54b92aae773032a06a10976b2a05308f84f79 (diff)
downloadopenttd-5a47d116893ec978bc9a8b884a7c88b69d1901e5.tar.xz
(svn r8377) -Fix (r8331): [build vehicle window] train cargo capacity now only add "(refitable)" if the engine in question is refitable
-rw-r--r--src/build_vehicle_gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index ca4a4498d..6494b73da 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -549,9 +549,11 @@ void DrawVehiclePurchaseInfo(int x, int y, uint w, EngineID engine_number)
SetDParam(2, STR_EMPTY);
} else {
int multihead = (rvi->flags & RVI_MULTIHEAD ? 1 : 0);
+ bool refittable = (EngInfo(engine_number)->refit_mask != 0);
+
SetDParam(0, rvi->cargo_type);
SetDParam(1, (rvi->capacity * (CountArticulatedParts(engine_number) + 1)) << multihead);
- SetDParam(2, STR_9842_REFITTABLE);
+ SetDParam(2, refittable ? STR_9842_REFITTABLE : STR_EMPTY);
}
DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0);
y += 10;