summaryrefslogtreecommitdiff
path: root/src/engine_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2017-03-18 20:48:54 +0000
committeralberth <alberth@openttd.org>2017-03-18 20:48:54 +0000
commitda608f62146d9298ffc23a0bf031546441cbdb94 (patch)
tree498f6c92fcc2c3b58b2033629c8583e616648747 /src/engine_gui.cpp
parent2f1d808781417fcd39d8d3e9412b6ac9c502225b (diff)
downloadopenttd-da608f62146d9298ffc23a0bf031546441cbdb94.tar.xz
(svn r27802) -Add: Display aircraft type in engine preview window (patch by Samu)
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index 245b46fe7..070ad6727 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -196,6 +196,7 @@ static StringID GetAircraftEngineInfoString(const Engine *e)
uint i = 0;
SetDParam(i++, e->GetCost());
SetDParam(i++, e->GetDisplayMaxSpeed());
+ SetDParam(i++, e->GetAircraftTypeText());
if (range > 0) SetDParam(i++, range);
SetDParam(i++, cargo);
SetDParam(i++, capacity);
@@ -204,10 +205,10 @@ static StringID GetAircraftEngineInfoString(const Engine *e)
SetDParam(i++, CT_MAIL);
SetDParam(i++, mail_capacity);
SetDParam(i++, e->GetRunningCost());
- return range > 0 ? STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAP_CAP_RUNCOST : STR_ENGINE_PREVIEW_COST_MAX_SPEED_CAP_CAP_RUNCOST;
+ return range > 0 ? STR_ENGINE_PREVIEW_COST_MAX_SPEED_TYPE_RANGE_CAP_CAP_RUNCOST : STR_ENGINE_PREVIEW_COST_MAX_SPEED_TYPE_CAP_CAP_RUNCOST;
} else {
SetDParam(i++, e->GetRunningCost());
- return range > 0 ? STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAP_RUNCOST : STR_ENGINE_PREVIEW_COST_MAX_SPEED_CAP_RUNCOST;
+ return range > 0 ? STR_ENGINE_PREVIEW_COST_MAX_SPEED_TYPE_RANGE_CAP_RUNCOST : STR_ENGINE_PREVIEW_COST_MAX_SPEED_TYPE_CAP_RUNCOST;
}
}