(svn r18011) -Feature(ette): [NewGRF] CB 36 for roadvehicle property 09 'running cost factor'.

This commit is contained in:
frosch
2009-11-08 13:02:05 +00:00
parent cc320dc4d0
commit 6ca8f6e380
6 changed files with 23 additions and 12 deletions

View File

@@ -4438,7 +4438,7 @@ Money Train::GetRunningCost() const
const RailVehicleInfo *rvi = RailVehInfo(v->engine_type);
if (rvi->running_cost_class == INVALID_PRICE) continue;
byte cost_factor = GetVehicleProperty(v, PROP_TRAIN_RUNNING_COST_FACTOR, rvi->running_cost);
uint cost_factor = GetVehicleProperty(v, PROP_TRAIN_RUNNING_COST_FACTOR, rvi->running_cost);
if (cost_factor == 0) continue;
/* Halve running cost for multiheaded parts */