diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-10-22 18:34:10 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-10-22 18:34:10 +0000 |
commit | 6e1cc8092696eb73a1932d63c561abd7246eee8e (patch) | |
tree | 01407638a8a368de0291732d87e662730e879ac0 /src/economy.cpp | |
parent | e0f547e694978adc34f3a04e860663f908c486b5 (diff) | |
download | openttd-6e1cc8092696eb73a1932d63c561abd7246eee8e.tar.xz |
(svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 270cedc67..076cdbae4 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -48,6 +48,7 @@ #include "cargomonitor.h" #include "goal_base.h" #include "story_base.h" +#include "linkgraph/refresh.h" #include "table/strings.h" #include "table/pricebase.h" @@ -1657,7 +1658,7 @@ static void LoadUnloadVehicle(Vehicle *front) * along them. Otherwise the vehicle could wait for cargo * indefinitely if it hasn't visited the other links yet, or if the * links die while it's loading. */ - if (!finished_loading) front->RefreshNextHopsStats(); + if (!finished_loading) LinkRefresher::Run(front); } unloading_time = 20; |