(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:
tron
2007-02-03 09:05:43 +00:00
parent 981833751a
commit c326ff3795
6 changed files with 5 additions and 11 deletions

View File

@@ -128,8 +128,7 @@ int32 CmdBuildRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!IsTileOwner(tile, _current_player)) return CMD_ERROR;
v = AllocateVehicle();
if (v == NULL || IsOrderPoolFull())
return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);
if (v == NULL) return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);
/* find the first free roadveh id */
unit_num = HASBIT(p2, 0) ? 0 : GetFreeUnitNumber(VEH_Road);