aboutsummaryrefslogtreecommitdiff
path: root/src/map_settings_manager.cpp
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2020-02-17 19:26:32 +0100
committerGitHub <noreply@github.com>2020-02-17 19:26:32 +0100
commite8a8185d24897ccf964327017effae81aa1c9d40 (patch)
tree0aec3d4406a7bcf1bea0fb9b32e3ac9dd8be5f78 /src/map_settings_manager.cpp
parent6958071f497c8f059429343339ad3818ed3cfed1 (diff)
downloadminetest-e8a8185d24897ccf964327017effae81aa1c9d40.tar.gz
minetest-e8a8185d24897ccf964327017effae81aa1c9d40.tar.bz2
minetest-e8a8185d24897ccf964327017effae81aa1c9d40.zip
Settings: Fix game minetest.conf flags overriding defaults (#9404)
The game minetest.conf flags directly overwrote the global minetest.conf default values, resulting in unwanted erased mapgen flags. * Fix set_mapgen_setting
Diffstat (limited to 'src/map_settings_manager.cpp')
-rw-r--r--src/map_settings_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map_settings_manager.cpp b/src/map_settings_manager.cpp
index a0ff1c754..7ef4bf12e 100644
--- a/src/map_settings_manager.cpp
+++ b/src/map_settings_manager.cpp
@@ -32,6 +32,7 @@ MapSettingsManager::MapSettingsManager(Settings *user_settings,
m_user_settings(user_settings)
{
assert(m_user_settings != NULL);
+ Mapgen::setDefaultSettings(m_map_settings);
}