forked from mirror/OpenTTD
(svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138)
This commit is contained in:
@@ -1185,7 +1185,7 @@ static void ConvertTownOwner(void)
|
||||
|
||||
for (tile = 0; tile != MapSize(); tile++) {
|
||||
if (IsTileType(tile, MP_STREET)) {
|
||||
if ((_map5[tile] & 0xF0) == 0x10 && _map3_lo[tile] & 0x80)
|
||||
if (IsLevelCrossing(tile) && _map3_lo[tile] & 0x80)
|
||||
_map3_lo[tile] = OWNER_TOWN;
|
||||
|
||||
if (_map_owner[tile] & 0x80) SetTileOwner(tile, OWNER_TOWN);
|
||||
|
Reference in New Issue
Block a user