diff options
author | Darkvater <Darkvater@openttd.org> | 2005-06-07 21:37:00 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-06-07 21:37:00 +0000 |
commit | c37cf285cefa69d09a50f3e5b609798766173d5b (patch) | |
tree | 25e2a197e45756770b59b3d230e466026cb1ca95 /openttd.c | |
parent | d2364f1d51ed868d6c9f0336c57dde46aef5fc3c (diff) | |
download | openttd-c37cf285cefa69d09a50f3e5b609798766173d5b.tar.xz |
(svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138)
Diffstat (limited to 'openttd.c')
-rw-r--r-- | openttd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |