summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-07-01 23:49:13 +0000
committersmatz <smatz@openttd.org>2009-07-01 23:49:13 +0000
commitecfaa0564d9588b9f6826b1033d93b827751f410 (patch)
treef04dff76baabb0dcc7e952f9d81b70828398a740 /src/saveload
parentadc5363202629aa07c762f459d7e9f5bc78efa34 (diff)
downloadopenttd-ecfaa0564d9588b9f6826b1033d93b827751f410.tar.xz
(svn r16718) -Codechange: make IsFreeWagon() member of Train
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp2
-rw-r--r--src/saveload/vehicle_sl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 7defed1e6..e33e234a1 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -985,7 +985,7 @@ bool AfterLoadGame()
}
FOR_ALL_TRAINS(v) {
- if (v->IsFrontEngine() || IsFreeWagon(v)) TrainConsistChanged(v, true);
+ if (v->IsFrontEngine() || v->IsFreeWagon()) TrainConsistChanged(v, true);
}
}
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 3525d2591..2f9c1e330 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -28,7 +28,7 @@ void ConnectMultiheadedTrains()
}
FOR_ALL_TRAINS(v) {
- if (v->IsFrontEngine() || IsFreeWagon(v)) {
+ if (v->IsFrontEngine() || v->IsFreeWagon()) {
/* Two ways to associate multiheaded parts to each other:
* sequential-matching: Trains shall be arranged to look like <..>..<..>..<..>..
* bracket-matching: Free vehicle chains shall be arranged to look like ..<..<..>..<..>..>..