summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-03-24 07:48:04 +0000
committertron <tron@openttd.org>2005-03-24 07:48:04 +0000
commit0a95a224ff00d57a22a6e284a32650cb772d298e (patch)
tree8ce2be84ebe870c0c3a6a00ee9622e52e91053d4 /rail_cmd.c
parentca83a544908d3071f3c0a1781fd6fc2062ce9374 (diff)
downloadopenttd-0a95a224ff00d57a22a6e284a32650cb772d298e.tar.xz
(svn r2040) Readd check that got accidently removed in r2022
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index c6f3c944b..8b37a00b6 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1113,7 +1113,8 @@ int32 CmdRemoveSingleSignal(int x, int y, uint32 flags, uint32 p1, uint32 p2)
(_map3_lo[tile] & _signals_table_both[track]) == 0) // signals on track?
return CMD_ERROR;
- if (!CheckTileOwnership(tile)) return CMD_ERROR;
+ if (_current_player != OWNER_WATER && !CheckTileOwnership(tile))
+ return CMD_ERROR;
SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);