diff options
author | smatz <smatz@openttd.org> | 2009-07-01 22:22:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-01 22:22:01 +0000 |
commit | adc5363202629aa07c762f459d7e9f5bc78efa34 (patch) | |
tree | b0c087f513113051159d435af05d823798b2ee67 /src/elrail.cpp | |
parent | 15990079ce2bb53446305c5b61c7a620cd58b2dc (diff) | |
download | openttd-adc5363202629aa07c762f459d7e9f5bc78efa34.tar.xz |
(svn r16717) -Codechange: make IsFrontEngine() member of Train
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 901f46dde..ea0834041 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -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); } |