(svn r18812) -Codechange: make some functions in train.h functions of Train.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user