diff options
author | tron <tron@openttd.org> | 2005-07-01 14:05:44 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-01 14:05:44 +0000 |
commit | b64c9b8b1f7de8609c25c367d3ad90a86b0b5c95 (patch) | |
tree | e0c185ad1ca2dc285b30b8887758db92c451d5cd /roadveh_cmd.c | |
parent | cd8d2643d3d21add68816bcf2d25391f4faee4f4 (diff) | |
download | openttd-b64c9b8b1f7de8609c25c367d3ad90a86b0b5c95.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.c | 15 |
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; |