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/settings.cpp | |
parent | 15990079ce2bb53446305c5b61c7a620cd58b2dc (diff) | |
download | openttd-adc5363202629aa07c762f459d7e9f5bc78efa34.tar.xz |
(svn r16717) -Codechange: make IsFrontEngine() member of Train
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 451c5b365..c5866204b 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -700,7 +700,7 @@ static bool UpdateConsists(int32 p1) Train *t; FOR_ALL_TRAINS(t) { /* Update the consist of all trains so the maximum speed is set correctly. */ - if (IsFrontEngine(t) || IsFreeWagon(t)) TrainConsistChanged(t, true); + if (t->IsFrontEngine() || IsFreeWagon(t)) TrainConsistChanged(t, true); } return true; } @@ -736,7 +736,7 @@ static bool TrainAccelerationModelChanged(int32 p1) { Train *t; FOR_ALL_TRAINS(t) { - if (IsFrontEngine(t)) { + if (t->IsFrontEngine()) { t->tcache.cached_max_curve_speed = GetTrainCurveSpeedLimit(t); UpdateTrainAcceleration(t); } |