(svn r25565) -Codechange: Rewrite order prediction logic to introduce proper refit prediction

This commit is contained in:
fonsinchen
2013-07-06 17:01:31 +00:00
parent 290fbd2231
commit b09c4043ec
3 changed files with 106 additions and 52 deletions

View File

@@ -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) {