summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-08 09:03:29 +0000
committertron <tron@openttd.org>2005-06-08 09:03:29 +0000
commitea0f21fbcc57cf8b205a5fc745213df8262da645 (patch)
tree0f9be1cf6d459093d340f2f22eb7cecae8935cd6 /town_cmd.c
parent0171aae10965259aa146749b0bd6e47ad9d3e4f7 (diff)
downloadopenttd-ea0f21fbcc57cf8b205a5fc745213df8262da645.tar.xz
(svn r2434) Fix some defects in r2433
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/town_cmd.c b/town_cmd.c
index e659033d9..afe80e2b4 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -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
if (IsTileType(tile, MP_HOUSE) || (
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]);