equal
deleted
inserted
replaced
205 UnitID unit_num; |
205 UnitID unit_num; |
206 const AircraftVehicleInfo *avi; |
206 const AircraftVehicleInfo *avi; |
207 const AirportFTAClass* ap; |
207 const AirportFTAClass* ap; |
208 Engine *e; |
208 Engine *e; |
209 |
209 |
210 if (!IsEngineBuildable(p1, VEH_Aircraft)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE); |
210 if (!IsEngineBuildable(p1, VEH_Aircraft, _current_player)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE); |
211 |
211 |
212 value = EstimateAircraftCost(p1); |
212 value = EstimateAircraftCost(p1); |
213 |
213 |
214 // to just query the cost, it is not neccessary to have a valid tile (automation/AI) |
214 // to just query the cost, it is not neccessary to have a valid tile (automation/AI) |
215 if (flags & DC_QUERY_COST) return value; |
215 if (flags & DC_QUERY_COST) return value; |