mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-15 08:22:34 +01:00
(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