Changeset - r14796:d039551f7b65
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-03-13 01:12:07
yexo@openttd.org
(svn r19396) -Fix [FS#3690] (r19351): trying to remove a too large rail station rect caused crashes
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -1416,6 +1416,7 @@ CommandCost RemoveFromRailBaseStation(Ti
 
			DoClearSquare(tile);
 
			if (keep_rail) MakeRailNormal(tile, owner, TrackToTrackBits(track), rt);
 

	
 
			st->rect.AfterRemoveTile(st, tile);
 
			AddTrackToSignalBuffer(tile, track, owner);
 
			YapfNotifyTrackLayoutChange(tile, track);
 

	
 
@@ -1442,7 +1443,6 @@ CommandCost RemoveFromRailBaseStation(Ti
 
	for (T **stp = affected_stations.Begin(); stp != affected_stations.End(); stp++) {
 
		T *st = *stp;
 

	
 
		st->rect.AfterRemoveRect(st, ta);
 
		/* now we need to make the "spanned" area of the railway station smaller
 
		 * if we deleted something at the edges.
 
		 * we also need to adjust train_tile. */
0 comments (0 inline, 0 general)