Mercurial > hg > openttd
changeset 5815:9d1b97478520 draft
(svn r8377) -Fix (r8331): [build vehicle window] train cargo capacity now only add "(refitable)" if the engine in question is refitable
author | bjarni <bjarni@openttd.org> |
---|---|
date | Tue, 23 Jan 2007 20:01:04 +0000 |
parents | bc88ba51b481 |
children | 398e2f149c8e |
files | src/build_vehicle_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -549,9 +549,11 @@ 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;