changeset 1901 | fb05044cf5c3 |
parent 1891 | 92a3b0aa0946 |
child 1926 | 68d60188a22f |
--- a/ship_cmd.c Sat Jun 04 07:36:28 2005 +0000 +++ b/ship_cmd.c Sat Jun 04 11:56:32 2005 +0000 @@ -876,7 +876,7 @@ /* The ai_new queries the vehicle cost before building the route, * so we must check against cheaters no sooner than now. --pasky */ if (!IsTileDepotType(tile, TRANSPORT_WATER)) return CMD_ERROR; - if (_map_owner[tile] != _current_player) return CMD_ERROR; + if (!IsTileOwner(tile, _current_player)) return CMD_ERROR; v = AllocateVehicle(); if (v == NULL || IsOrderPoolFull() ||