(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:
rubidium 2008-07-25 13:20:50 +00:00
parent 3a706b0f2d
commit 64833bb84f
1 changed files with 1 additions and 0 deletions

View File

@ -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 {