Changeset - r10914:c6b98785c78b
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2009-01-24 00:42:09
smatz@openttd.org
(svn r15249) -Fix [FS#2576]: force trains from old (and other vehicles from 'recent') savegames to have zero cur_speed while stopped (cooperation with frosch123)
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/vehicle_sl.cpp
Show inline comments
 
@@ -282,6 +282,11 @@ void AfterLoadVehicles(bool part_of_load
 
				 * moving-wagons-inside-depot- and autoreplace- code */
 
				v->cur_speed = 0;
 
			}
 
			/* 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))) {
 
				v->cur_speed = 0;
 
			}
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)