* Restore capacities and refit_capacities as vehicle might have been able to load now. */
| 121 | * Restore capacities and refit_capacities as vehicle might have been able to load now. |
| 122 | */ |
| 123 | void LinkRefresher::ResetRefit() |
| 124 | { |
| 125 | for (auto &it : this->refit_capacities) { |
| 126 | if (it.remaining == it.capacity) continue; |
| 127 | this->capacities[it.cargo] += it.capacity - it.remaining; |
| 128 | it.remaining = it.capacity; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Predict the next order the vehicle will execute and resolve conditionals by |