diff options
author | peter1138 <peter1138@openttd.org> | 2007-05-07 13:26:10 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-05-07 13:26:10 +0000 |
commit | ebe81b98ce72768feadfdf562931b4ff59e13ff3 (patch) | |
tree | 5f24fcf49bbf30b6652cc9804840346fce6e2eec /src/roadveh_cmd.cpp | |
parent | e4ada15d49693b346c460a064fca59b72ca2d974 (diff) | |
download | openttd-ebe81b98ce72768feadfdf562931b4ff59e13ff3.tar.xz |
(svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, for all vehicle types.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 43664a6ff..390a14d30 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -117,7 +117,7 @@ void DrawRoadVehEngine(int x, int y, EngineID engine, SpriteID pal) static int32 EstimateRoadVehCost(EngineID engine_type) { - return ((_price.roadveh_base >> 3) * RoadVehInfo(engine_type)->base_cost) >> 5; + return ((_price.roadveh_base >> 3) * GetEngineProperty(engine_type, 0x11, RoadVehInfo(engine_type)->base_cost)) >> 5; } /** Build a road vehicle. |