summaryrefslogtreecommitdiff
path: root/roadveh_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
commit62b5e913c66edaf25eb659cd29853097ac1177af (patch)
treee0c185ad1ca2dc285b30b8887758db92c451d5cd /roadveh_cmd.c
parent12e506bd1b1c0d3a7f81eb1df5c5d89ed738e72a (diff)
downloadopenttd-62b5e913c66edaf25eb659cd29853097ac1177af.tar.xz
(svn r2504) Move Draw*EngineInfo to engine_gui.c to reduce dependencies
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index f8854ead1..f28002cd2 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -9,7 +9,6 @@
#include "command.h"
#include "station.h"
#include "news.h"
-#include "gfx.h"
#include "pathfind.h"
#include "npf.h"
#include "player.h"
@@ -91,20 +90,6 @@ void DrawRoadVehEngine(int x, int y, int engine, uint32 image_ormod)
DrawSprite((6 + _roadveh_images[spritenum]) | image_ormod, x, y);
}
-void DrawRoadVehEngineInfo(int engine, int x, int y, int maxw)
-{
- const RoadVehicleInfo *rvi = RoadVehInfo(engine);
-
- SetDParam(0, ((_price.roadveh_base >> 3) * rvi->base_cost) >> 5);
- SetDParam(1, rvi->max_speed * 10 >> 5);
- SetDParam(2, rvi->running_cost * _price.roadveh_running >> 8);
-
- SetDParam(4, rvi->capacity);
- SetDParam(3, _cargoc.names_long_p[rvi->cargo_type]);
-
- DrawStringMultiCenter(x, y, STR_902A_COST_SPEED_RUNNING_COST, maxw);
-}
-
int32 EstimateRoadVehCost(EngineID engine_type)
{
return ((_price.roadveh_base >> 3) * RoadVehInfo(engine_type)->base_cost) >> 5;