equal
deleted
inserted
replaced
176 if (!IsEngineBuildable(p1, VEH_Aircraft)) return CMD_ERROR; |
176 if (!IsEngineBuildable(p1, VEH_Aircraft)) return CMD_ERROR; |
177 |
177 |
178 // Workaround: TODO: make AI players try to build planes in a hangar instead of just an airport tile. |
178 // Workaround: TODO: make AI players try to build planes in a hangar instead of just an airport tile. |
179 if (!IsAircraftHangarTile(tile) && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR; |
179 if (!IsAircraftHangarTile(tile) && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR; |
180 |
180 |
181 if (_map_owner[tile] != _current_player && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR; |
181 if (!IsTileOwner(tile, _current_player) && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR; |
182 |
182 |
183 SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); |
183 SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); |
184 |
184 |
185 value = EstimateAircraftCost(p1); |
185 value = EstimateAircraftCost(p1); |
186 |
186 |