summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index d84243d13..d5847eacc 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -121,7 +121,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
#endif /* ENABLE_NETWORK */
InitializeAnimatedTiles();
- InitializeLandscapeVariables(false);
+ InitializeEconomy();
ResetObjectToPlace();
@@ -132,18 +132,3 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
GamelogGRFAddList(_grfconfig);
GamelogStopAction();
}
-
-
-/* Calculate constants that depend on the landscape type. */
-void InitializeLandscapeVariables(bool only_constants)
-{
- if (only_constants) return;
-
- memset(_cargo_payment_rates, 0, sizeof(_cargo_payment_rates));
- memset(_cargo_payment_rates_frac, 0, sizeof(_cargo_payment_rates_frac));
-
- const CargoSpec *cs;
- FOR_ALL_CARGOSPECS(cs) {
- _cargo_payment_rates[cs->Index()] = cs->initial_payment;
- }
-}