From 12bcc254c8c63311a4ce483fef23e8b7f7f7d611 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 24 Jan 2009 12:50:10 +0000 Subject: [PATCH] (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) --- src/saveload/vehicle_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 142501f547..0fe73fe998 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; } }