(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:
@@ -835,7 +835,7 @@ int32 CmdBuildShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
v = AllocateVehicle();
|
||||
unit_num = HASBIT(p2, 0) ? 0 : GetFreeUnitNumber(VEH_Ship);
|
||||
|
||||
if (v == NULL || IsOrderPoolFull() || unit_num > _patches.max_ships)
|
||||
if (v == NULL || unit_num > _patches.max_ships)
|
||||
return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
|
Reference in New Issue
Block a user