(svn r2040) Readd check that got accidently removed in r2022

This commit is contained in:
tron 2005-03-24 07:48:04 +00:00
parent bfc1d43a27
commit ccd6a0614f
1 changed files with 2 additions and 1 deletions

View File

@ -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);