diff options
author | Erich Eckner <git@eckner.net> | 2018-10-30 11:13:12 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-01-16 21:58:15 +0100 |
commit | 0c5ba5b7bf9a9dfa78c026f4da656940a460f47d (patch) | |
tree | d2a44494bbd70425b8f9e0e22b8c4e4dd8223001 /src/misc.cpp | |
parent | 523901887827768d6bff347ddb57787b295cc9e1 (diff) | |
download | openttd-0c5ba5b7bf9a9dfa78c026f4da656940a460f47d.tar.xz |
underground patch applied
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index c46a1c11d..afbbc7506 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -8,6 +8,7 @@ /** @file misc.cpp Misc functions that shouldn't be here. */ #include "stdafx.h" +#include "layer_func.h" #include "landscape.h" #include "news_func.h" #include "ai/ai.hpp" @@ -61,7 +62,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin * related to the new game we're about to start/load. */ UnInitWindowSystem(); - AllocateMap(size_x, size_y); + AllocateMap(size_x, size_y, 1 << _settings_game.game_creation.layers); _pause_mode = PM_UNPAUSED; _game_speed = 100; |