summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-06-07 21:37:00 +0000
committerDarkvater <darkvater@openttd.org>2005-06-07 21:37:00 +0000
commit0171aae10965259aa146749b0bd6e47ad9d3e4f7 (patch)
tree25e2a197e45756770b59b3d230e466026cb1ca95 /openttd.c
parentfa8f46c0b7f4723c12ddefd77d619ca98b6c7c6c (diff)
downloadopenttd-0171aae10965259aa146749b0bd6e47ad9d3e4f7.tar.xz
(svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138)
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openttd.c b/openttd.c
index c1205eda3..cedffb08a 100644
--- a/openttd.c
+++ b/openttd.c
@@ -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);