(svn r18812) -Codechange: make some functions in train.h functions of Train.

This commit is contained in:
rubidium
2010-01-15 18:23:52 +00:00
parent 55d1db5b28
commit aaf0b4b46c
10 changed files with 84 additions and 80 deletions

View File

@@ -1285,7 +1285,7 @@ static Vehicle *UpdateTrainPowerProc(Vehicle *v, void *data)
if (t->IsArticulatedPart()) return NULL;
const RailVehicleInfo *rvi = RailVehInfo(t->engine_type);
if (GetVehicleProperty(t, PROP_TRAIN_POWER, rvi->power) != 0) TrainPowerChanged(t->First());
if (GetVehicleProperty(t, PROP_TRAIN_POWER, rvi->power) != 0) t->First()->PowerChanged();
return NULL;
}