summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-08-09 20:44:23 +0000
committerpeter1138 <peter1138@openttd.org>2006-08-09 20:44:23 +0000
commit42bcee22bd7d3a8582abe88e5f087b205c872505 (patch)
treec274fcdee8928c83b8e229e4092e1b138de31bf4 /roadveh_cmd.c
parent154c0b10af512b3023a06df5ef9e7549a83ec7ad (diff)
downloadopenttd-42bcee22bd7d3a8582abe88e5f087b205c872505.tar.xz
(svn r5819) - NewGRF: add support for refit costs specified in NewGRF. This may affect the default refit costs for the default rail vehicles.
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index f701937c4..875ef6241 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -1798,7 +1798,7 @@ int32 CmdRefitRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
cost = 0;
if (IS_HUMAN_PLAYER(v->owner) && new_cid != v->cargo_type) {
- cost = _price.roadveh_base >> 7;
+ cost = (EngInfo(v->engine_type)->refit_cost * _price.roadveh_base) >> 10;
}
if (flags & DC_EXEC) {