mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r13824) -Fix (r13822): also make sure a tile is a road stop tile before trying to get information about the roadstop...
This commit is contained in:
parent
3a706b0f2d
commit
64833bb84f
|
@ -570,6 +570,7 @@ CommandCost CmdBuildRoad(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||
}
|
||||
|
||||
case MP_STATION:
|
||||
if (!IsRoadStop(tile)) goto do_clear;
|
||||
if (IsDriveThroughStopTile(tile)) {
|
||||
if (pieces & ~AxisToRoadBits(DiagDirToAxis(GetRoadStopDir(tile)))) goto do_clear;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue