Changeset - r6664:3f5c68693e8f
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-05-21 16:58:23
rubidium@openttd.org
(svn r9895) -Fix: assertion when removing roadstop.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -1397,7 +1397,9 @@ int32 CmdRemoveRoadStop(TileIndex tile, 
 
	/* Save the stop info before it is removed */
 
	bool is_drive_through = IsDriveThroughStopTile(tile);
 
	RoadTypes rts = GetRoadTypes(tile);
 
	RoadBits road_bits = GetAllRoadBits(tile);
 
	RoadBits road_bits = IsDriveThroughStopTile(tile) ?
 
			((GetRoadStopDir(tile) == DIAGDIR_NE) ? ROAD_X : ROAD_Y) :
 
			DiagDirToRoadBits(GetRoadStopDir(tile));
 
	bool is_towns_road = is_drive_through && GetStopBuiltOnTownRoad(tile);
 

	
 
	int32 ret = RemoveRoadStop(st, flags, tile);
0 comments (0 inline, 0 general)