summaryrefslogtreecommitdiff
path: root/src/engine_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-04-20 22:41:09 +0000
committerglx <glx@openttd.org>2009-04-20 22:41:09 +0000
commit37cce7098b93bc4e0a8581aad6dd5f8f09fe36e0 (patch)
treee33c9febb7a418dc5cbe6bdee00f8b19650284db /src/engine_gui.cpp
parentb01ed2b38f0e8396e899b150ae87ec9a1e8d2526 (diff)
downloadopenttd-37cce7098b93bc4e0a8581aad6dd5f8f09fe36e0.tar.xz
(svn r16105) -Codechange: use {CARGO} instead hardcoded cargo name
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index 03848f053..40b4f2d98 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -174,9 +174,11 @@ static void DrawAircraftEngineInfo(EngineID engine, int left, int right, int top
if (cargo == CT_INVALID || cargo == CT_PASSENGERS) {
SetDParam(0, e->GetCost());
SetDParam(1, e->GetDisplayMaxSpeed());
- SetDParam(2, e->GetDisplayDefaultCapacity());
- SetDParam(3, e->u.air.mail_capacity);
- SetDParam(4, e->GetRunningCost());
+ SetDParam(2, CT_PASSENGERS),
+ SetDParam(3, e->GetDisplayDefaultCapacity());
+ SetDParam(4, CT_MAIL),
+ SetDParam(5, e->u.air.mail_capacity);
+ SetDParam(6, e->GetRunningCost());
DrawStringMultiLine(left, right, top, bottom, STR_VEHICLE_INFO_COST_MAX_SPEED_CAPACITY_CAPACITY_RUNCOST, SA_CENTER);
} else {