|
|
@ -1841,7 +1841,7 @@ Town *ClosestTownFromTile(uint tile, uint threshold)
|
|
|
|
// XXX - Fix this so for a given tiletype the owner of the type is in the same variable
|
|
|
|
// XXX - Fix this so for a given tiletype the owner of the type is in the same variable
|
|
|
|
if (IsTileType(tile, MP_HOUSE) || (
|
|
|
|
if (IsTileType(tile, MP_HOUSE) || (
|
|
|
|
IsTileType(tile, MP_STREET) &&
|
|
|
|
IsTileType(tile, MP_STREET) &&
|
|
|
|
(IsLevelCrossing(tile) ? _map3_lo[tile] == OWNER_TOWN : GetTileOwner(tile))
|
|
|
|
(IsLevelCrossing(tile) ? _map3_lo[tile] : GetTileOwner(tile)) == OWNER_TOWN
|
|
|
|
))
|
|
|
|
))
|
|
|
|
return GetTown(_map2[tile]);
|
|
|
|
return GetTown(_map2[tile]);
|
|
|
|
|
|
|
|
|
|
|
|