Changeset - r20174:7bd446c0b051
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-04-06 18:30:45
rubidium@openttd.org
(svn r25152) -Fix-ish [FS#5520]: remove stray reservation from savegames affected by FS#5510 et al. upon loading
1 file changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/afterload.cpp
Show inline comments
 
@@ -2770,6 +2770,14 @@ bool AfterLoadGame()
 
				v->acceleration = avi->acceleration;
 
			}
 
		}
 

	
 
		/* Blocked tiles could be reserved due to a bug, which causes
 
		 * other places to assert upon e.g. station reconstruction. */
 
		for (TileIndex t = 0; t < map_size; t++) {
 
			if (HasStationTileRail(t) && IsStationTileBlocked(t)) {
 
				SetRailStationReservation(t, false);
 
			}
 
		}
 
	}
 

	
 
	/* Road stops is 'only' updating some caches */
0 comments (0 inline, 0 general)