From 7935cf77544b50d8d5defbbfebbcc706b8618d74 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 21 May 2007 16:58:23 +0000 Subject: (svn r9895) -Fix: assertion when removing roadstop. --- src/station_cmd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 313bd05b5..84780a4ce 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1397,7 +1397,9 @@ int32 CmdRemoveRoadStop(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) /* 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); -- cgit v1.2.3-70-g09d2