(svn r12138) -Fix: do not allow adding tram to rail-road crossing when there is a vehicle on it

pull/155/head
smatz 17 years ago
parent 6d333e5d3e
commit e081e0712f

@ -458,6 +458,7 @@ CommandCost CmdBuildRoad(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (HasBit(GetRoadTypes(tile), rt)) return_cmd_error(STR_1007_ALREADY_BUILT);
all_bits = GetCrossingRoadBits(tile);
if (pieces & ComplementRoadBits(all_bits)) goto do_clear;
if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR;
break;
default:

Loading…
Cancel
Save