Changeset - r16274:1350408d25e9
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2010-10-18 17:06:20
smatz@openttd.org
(svn r20990) -Fix: when removing a rail station, don't leave track under non-station tiles
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -1433,9 +1433,11 @@ CommandCost RemoveFromRailBaseStation(Ti
 
				}
 
			}
 

	
 
			bool build_rail = keep_rail && !IsStationTileBlocked(tile);
 

	
 
			DoClearSquare(tile);
 
			DeleteNewGRFInspectWindow(GSF_STATIONS, tile);
 
			if (keep_rail) MakeRailNormal(tile, owner, TrackToTrackBits(track), rt);
 
			if (build_rail) MakeRailNormal(tile, owner, TrackToTrackBits(track), rt);
 

	
 
			st->rect.AfterRemoveTile(st, tile);
 
			AddTrackToSignalBuffer(tile, track, owner);
0 comments (0 inline, 0 general)