Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loops

(cherry picked from commit 9a8756d7ed)
This commit is contained in:
glx22
2021-04-29 17:51:05 +02:00
committed by Jonathan G Rennison
parent dfe616bef4
commit 050b95e351
8 changed files with 53 additions and 25 deletions

View File

@@ -848,8 +848,7 @@ void RecomputePrices()
}
/* Setup cargo payment */
CargoSpec *cs;
FOR_ALL_CARGOSPECS(cs) {
for (CargoSpec *cs : CargoSpec::Iterate()) {
cs->current_payment = ((int64)cs->initial_payment * _economy.inflation_payment) >> 16;
}