(svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, for all vehicle types.

This commit is contained in:
peter1138
2007-05-07 13:26:10 +00:00
parent 0de85b7eb0
commit 4591fb5b0d
5 changed files with 14 additions and 14 deletions

View File

@@ -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.