mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r9895) -Fix: assertion when removing roadstop.
This commit is contained in:
parent
34c3ecc80b
commit
7935cf7754
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user