summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-01 14:05:44 +0000
committertron <tron@openttd.org>2005-07-01 14:05:44 +0000
commitb64c9b8b1f7de8609c25c367d3ad90a86b0b5c95 (patch)
treee0c185ad1ca2dc285b30b8887758db92c451d5cd /aircraft_cmd.c
parentcd8d2643d3d21add68816bcf2d25391f4faee4f4 (diff)
downloadopenttd-b64c9b8b1f7de8609c25c367d3ad90a86b0b5c95.tar.xz
(svn r2504) Move Draw*EngineInfo to engine_gui.c to reduce dependencies
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 7d15fa9f5..131d00250 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -10,7 +10,6 @@
#include "command.h"
#include "station.h"
#include "news.h"
-#include "gfx.h"
#include "sound.h"
#include "player.h"
#include "airport.h"
@@ -118,18 +117,6 @@ void DrawAircraftEngine(int x, int y, int engine, uint32 image_ormod)
}
}
-void DrawAircraftEngineInfo(int engine, int x, int y, int maxw)
-{
- const AircraftVehicleInfo *avi = AircraftVehInfo(engine);
- SetDParam(0, ((_price.aircraft_base >> 3) * avi->base_cost) >> 5);
- SetDParam(1, avi->max_speed << 3);
- SetDParam(2, avi->passenger_capacity);
- SetDParam(3, avi->mail_capacity);
- SetDParam(4, avi->running_cost * _price.aircraft_running >> 8);
-
- DrawStringMultiCenter(x, y, STR_A02E_COST_MAX_SPEED_CAPACITY, maxw);
-}
-
/* Allocate many vehicles */
static bool AllocateVehicles(Vehicle **vl, int num)
{