summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-04 12:14:51 +0000
committertron <tron@openttd.org>2005-06-04 12:14:51 +0000
commit24fd817420718d3ead11ad50ca0c51aaf745d59c (patch)
tree9a97445a070acacbf816b031a88214e0de362a4f /rail_cmd.c
parentff0030936e9ed7ae92d0a1fef2984b2eed608214 (diff)
downloadopenttd-24fd817420718d3ead11ad50ca0c51aaf745d59c.tar.xz
(svn r2409) Missed one _map_owner -> IsTileOwner()
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 0b6a8fc92..165985776 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -338,7 +338,7 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags, uint32 p1, uint32 p2)
return CMD_ERROR;
}
if (m5 & RAIL_TYPE_SPECIAL ||
- _map_owner[tile] != _current_player ||
+ !IsTileOwner(tile, _current_player) ||
(_map3_lo[tile] & 0xFU) != p1) {
// Get detailed error message
return DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);