(svn r16717) -Codechange: make IsFrontEngine() member of Train
This commit is contained in:
@@ -568,7 +568,7 @@ bool SettingsDisableElrail(int32 p1)
|
||||
/* Fix the total power and acceleration for trains */
|
||||
FOR_ALL_TRAINS(t) {
|
||||
/* power and acceleration is cached only for front engines */
|
||||
if (IsFrontEngine(t)) {
|
||||
if (t->IsFrontEngine()) {
|
||||
TrainPowerChanged(t);
|
||||
UpdateTrainAcceleration(t);
|
||||
}
|
||||
|
Reference in New Issue
Block a user