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 /train_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 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/train_cmd.c b/train_cmd.c index b40d70c23..3806e0f16 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -10,7 +10,6 @@ #include "npf.h" #include "station.h" #include "table/train_cmd.h" -#include "gfx.h" #include "news.h" #include "engine.h" #include "player.h" @@ -392,28 +391,6 @@ void DrawTrainEngine(int x, int y, int engine, uint32 image_ormod) DrawSprite(image | image_ormod, x, y); } -void DrawTrainEngineInfo(int engine, int x, int y, int maxw) -{ - const RailVehicleInfo *rvi = RailVehInfo(engine); - int cap; - uint multihead = (rvi->flags & RVI_MULTIHEAD) ? 1 : 0; - - SetDParam(0, ((_price.build_railvehicle >> 3) * rvi->base_cost) >> 5); - SetDParam(2, rvi->max_speed * 10 >> 4); - SetDParam(3, rvi->power << multihead); - SetDParam(1, rvi->weight << multihead); - - SetDParam(4, (rvi->running_cost_base * _price.running_rail[rvi->engclass] >> 8) << multihead); - - cap = rvi->capacity; - SetDParam(5, STR_8838_N_A); - if (cap != 0) { - SetDParam(6, cap << multihead); - SetDParam(5, _cargoc.names_long_p[rvi->cargo_type]); - } - DrawStringMultiCenter(x, y, STR_885B_COST_WEIGHT_T_SPEED_POWER, maxw); -} - static int32 CmdBuildRailWagon(uint engine, TileIndex tile, uint32 flags) { |