summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-24 12:50:10 +0000
committersmatz <smatz@openttd.org>2009-01-24 12:50:10 +0000
commitaeceef9437fc1d3b832c2e89b75a9e72f5f18aa0 (patch)
treebc23343779cafb947dc6f666211e793ede897a90
parenta20635fbfdb7c88bad9d1ee447f21ee520c04c9a (diff)
downloadopenttd-aeceef9437fc1d3b832c2e89b75a9e72f5f18aa0.tar.xz
(svn r15251) -Fix (r15249): trains from 0.2.0-0.3.0 could be in 'stopping' state instead of 'stopped' (this problem doesn't affect trains in depot)
-rw-r--r--src/saveload/vehicle_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp
index 142501f54..0fe73fe99 100644
--- a/src/saveload/vehicle_sl.cpp
+++ b/src/saveload/vehicle_sl.cpp
@@ -284,7 +284,7 @@ void AfterLoadVehicles(bool part_of_load)
}
/* trains weren't stopping gradually in old OTTD versions (and TTO/TTD)
* other vehicle types didn't have zero speed while stopped (even in 'recent' OTTD versions) */
- if ((v->vehstatus & VS_STOPPED) && (v->type != VEH_TRAIN || CheckSavegameVersion(1))) {
+ if ((v->vehstatus & VS_STOPPED) && (v->type != VEH_TRAIN || CheckSavegameVersionOldStyle(2, 1))) {
v->cur_speed = 0;
}
}