(svn r16717) -Codechange: make IsFrontEngine() member of Train

This commit is contained in:
smatz
2009-07-01 22:22:01 +00:00
parent 8eda6955b5
commit 20fedeb3d6
17 changed files with 114 additions and 106 deletions

View File

@@ -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);
}