diff options
author | tron <tron@openttd.org> | 2005-03-24 07:48:04 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-24 07:48:04 +0000 |
commit | ccd6a0614f57518fffec7bd5fa4c07e9eb1bfd2d (patch) | |
tree | 8ce2be84ebe870c0c3a6a00ee9622e52e91053d4 | |
parent | bfc1d43a2794d09e9256095ba8df4eb5ccc4b48f (diff) | |
download | openttd-ccd6a0614f57518fffec7bd5fa4c07e9eb1bfd2d.tar.xz |
(svn r2040) Readd check that got accidently removed in r2022
-rw-r--r-- | rail_cmd.c | 3 |
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); |