(svn r13824) -Fix (r13822): also make sure a tile is a road stop tile before trying to get information about the roadstop...

pull/155/head
rubidium 16 years ago
parent 80daf62d95
commit f75591a5a0

@ -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…
Cancel
Save