summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-03 09:05:43 +0000
committertron <tron@openttd.org>2007-02-03 09:05:43 +0000
commitc326ff37956552f883e6d6f4dc6e2fb9f61e40d0 (patch)
tree26d91439e6a9b8f23752f33cabd1ef990dec8c60 /src/roadveh_cmd.cpp
parent981833751ae853f27e492dc0197f1239d7ed580c (diff)
downloadopenttd-c326ff37956552f883e6d6f4dc6e2fb9f61e40d0.tar.xz
(svn r8550) -Fix
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 6be3e106d..b07a81887 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -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);