diff options
author | rubidium <rubidium@openttd.org> | 2008-04-09 18:26:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-09 18:26:19 +0000 |
commit | 82155367f6118c0a43a74eb842cf25b23d143d49 (patch) | |
tree | ddb520943c26dd780e20324992cfd08a769fb197 /src/economy.cpp | |
parent | d1783459473251e2d7f392a3013fe6a8bbef4316 (diff) | |
download | openttd-82155367f6118c0a43a74eb842cf25b23d143d49.tar.xz |
(svn r12640) -Codechange: let GetLoadType make a difference between full load and full load any based on the patch setting instead of using the patch setting directly.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 7c70bba06..53115d448 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1730,7 +1730,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) } else { bool finished_loading = true; if (v->current_order.GetLoadType() & OLFB_FULL_LOAD) { - if (_patches.full_load_any) { + if (v->current_order.GetLoadType() == OLF_FULL_LOAD_ANY) { /* if the aircraft carries passengers and is NOT full, then * continue loading, no matter how much mail is in */ if ((v->type == VEH_AIRCRAFT && IsCargoInClass(v->cargo_type, CC_PASSENGERS) && v->cargo_cap != v->cargo.Count()) || |