summaryrefslogtreecommitdiff
path: root/ship_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 /ship_cmd.c
parentcd8d2643d3d21add68816bcf2d25391f4faee4f4 (diff)
downloadopenttd-b64c9b8b1f7de8609c25c367d3ad90a86b0b5c95.tar.xz
(svn r2504) Move Draw*EngineInfo to engine_gui.c to reduce dependencies
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index 5db2b2b63..fe53aa8a8 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -7,7 +7,6 @@
#include "command.h"
#include "pathfind.h"
#include "station.h"
-#include "gfx.h"
#include "news.h"
#include "engine.h"
#include "gui.h"
@@ -41,17 +40,6 @@ void DrawShipEngine(int x, int y, int engine, uint32 image_ormod)
DrawSprite((6 + _ship_sprites[spritenum]) | image_ormod, x, y);
}
-void DrawShipEngineInfo(int engine, int x, int y, int maxw)
-{
- const ShipVehicleInfo *svi = ShipVehInfo(engine);
- SetDParam(0, svi->base_cost * (_price.ship_base>>3)>>5);
- SetDParam(1, svi->max_speed * 10 >> 5);
- SetDParam(2, _cargoc.names_long_p[svi->cargo_type]);
- SetDParam(3, svi->capacity);
- SetDParam(4, svi->running_cost * _price.ship_running >> 8);
- DrawStringMultiCenter(x, y, STR_982E_COST_MAX_SPEED_CAPACITY, maxw);
-}
-
int GetShipImage(const Vehicle *v, byte direction)
{
int spritenum = v->spritenum;