equal
deleted
inserted
replaced
243 /* Calculate constants that depend on the landscape type. */ |
243 /* Calculate constants that depend on the landscape type. */ |
244 void InitializeLandscapeVariables(bool only_constants) |
244 void InitializeLandscapeVariables(bool only_constants) |
245 { |
245 { |
246 if (only_constants) return; |
246 if (only_constants) return; |
247 |
247 |
248 for (CargoID i = 0; i != NUM_CARGO; i++) { |
248 for (CargoID i = 0; i < NUM_CARGO; i++) { |
249 _cargo_payment_rates[i] = GetCargo(i)->initial_payment; |
249 _cargo_payment_rates[i] = GetCargo(i)->initial_payment; |
250 _cargo_payment_rates_frac[i] = 0; |
250 _cargo_payment_rates_frac[i] = 0; |
251 } |
251 } |
252 } |
252 } |
253 |
253 |