forked from mirror/OpenTTD
(svn r8550) -Fix
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
This commit is contained in:
@@ -230,8 +230,7 @@ int32 CmdBuildAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
|
||||
/* Allocate 2 or 3 vehicle structs, depending on type
|
||||
* vl[0] = aircraft, vl[1] = shadow, [vl[2] = rotor] */
|
||||
if (!AllocateVehicles(vl, avi->subtype & AIR_CTOL ? 2 : 3) ||
|
||||
IsOrderPoolFull()) {
|
||||
if (!AllocateVehicles(vl, avi->subtype & AIR_CTOL ? 2 : 3)) {
|
||||
return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user