GRF: Add extra road/tram type flag: towns cannot modify tiles

This commit is contained in:
Jonathan G Rennison
2020-10-16 22:12:57 +01:00
parent 75a964acb0
commit 946442ab6b
9 changed files with 48 additions and 18 deletions

View File

@@ -721,6 +721,8 @@ CommandCost CmdBuildRoad(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
bool disable_custom_bridge_heads = HasBit(p1, 13);
if ((flags & DC_TOWN) && !MayTownModifyRoad(tile)) return CMD_ERROR;
Slope tileh = GetTileSlope(tile);
RoadTramType rtt = GetRoadTramType(rt);