From c37cf285cefa69d09a50f3e5b609798766173d5b Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 7 Jun 2005 21:37:00 +0000 Subject: (svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138) --- openttd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openttd.c') 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); -- cgit v1.2.3-54-g00ecf