equal
deleted
inserted
replaced
154 /* p1 = engine */ |
154 /* p1 = engine */ |
155 int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
155 int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
156 { |
156 { |
157 int32 value; |
157 int32 value; |
158 Vehicle *vl[3], *v, *u, *w; |
158 Vehicle *vl[3], *v, *u, *w; |
159 byte unit_num; |
159 UnitID unit_num; |
160 uint tile = TILE_FROM_XY(x,y); |
160 uint tile = TILE_FROM_XY(x,y); |
161 const AircraftVehicleInfo *avi = AircraftVehInfo(p1); |
161 const AircraftVehicleInfo *avi = AircraftVehInfo(p1); |
162 Engine *e; |
162 Engine *e; |
163 |
163 |
164 if (!IsEngineBuildable(p1, VEH_Aircraft)) return CMD_ERROR; |
164 if (!IsEngineBuildable(p1, VEH_Aircraft)) return CMD_ERROR; |