diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-07-06 17:01:31 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-07-06 17:01:31 +0000 |
commit | b09c4043ecddcb62fa946f13a888984cc9275df7 (patch) | |
tree | 563796838990df4fd57d47e4240157900767385e /src/economy.cpp | |
parent | 290fbd2231a04b4ab56db86630161bb720bac62b (diff) | |
download | openttd-b09c4043ecddcb62fa946f13a888984cc9275df7.tar.xz |
(svn r25565) -Codechange: Rewrite order prediction logic to introduce proper refit prediction
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index ca276570e..e936b5678 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1530,6 +1530,9 @@ static void LoadUnloadVehicle(Vehicle *front) cur_company.Restore(); } + /* As we're loading here the following link can carry the full capacity of the vehicle. */ + v->refit_cap = v->cargo_cap; + /* update stats */ int t; switch (front->type) { |