src/misc.cpp
branchgamebalance
changeset 9906 6f41b8713b65
parent 9896 2473804114de
child 9908 0fa543611bbe
equal deleted inserted replaced
9905:91eca6fdee8d 9906:6f41b8713b65
   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