# HG changeset patch # User bjarni # Date 2005-01-30 21:06:09 # Node ID 4acabc86752007a031a571d289c1966336408852 # Parent bcfd11754153c68d1637a80ee61fb02aea25989a (svn r1742) - Fix: fixed bug introduced in r1730 where AI players had problems when building aircrafts diff --git a/aircraft_cmd.c b/aircraft_cmd.c --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -166,7 +166,7 @@ int32 CmdBuildAircraft(int x, int y, uin // Workaround: TODO: make AI players try to build planes in a hangar instead of just an airport tile. if (!IsAircraftHangarTile((TileIndex)tile) && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR; - if (_map_owner[tile] != _current_player) return CMD_ERROR; + if (_map_owner[tile] != _current_player && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR; SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);