(svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher.

This commit is contained in:
fonsinchen
2013-10-22 18:34:10 +00:00
parent 479bdf65ed
commit fb281ce23c
9 changed files with 32 additions and 205 deletions

View File

@@ -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;