aboutsummaryrefslogtreecommitdiff
path: root/src/defaultsettings.cpp
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-10-31 18:19:23 +0000
committerGitHub <noreply@github.com>2020-10-31 18:19:23 +0000
commit89dd05fdf35ce465fcc2b3588337f79f818a78aa (patch)
tree8cd34c9435fd0feca4d35184649bc002cc53d260 /src/defaultsettings.cpp
parent2dff3dd03f7ba25f3fab7c360759ddbf93615668 (diff)
downloadminetest-89dd05fdf35ce465fcc2b3588337f79f818a78aa.tar.gz
minetest-89dd05fdf35ce465fcc2b3588337f79f818a78aa.tar.bz2
minetest-89dd05fdf35ce465fcc2b3588337f79f818a78aa.zip
Fix segfault in deprecation logging due to tail call, log by default (#10174)
Diffstat (limited to 'src/defaultsettings.cpp')
-rw-r--r--src/defaultsettings.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 6c7d4be97..fcdf6b536 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -358,11 +358,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("disallow_empty_password", "false");
settings->setDefault("disable_anticheat", "false");
settings->setDefault("enable_rollback_recording", "false");
-#ifdef NDEBUG
- settings->setDefault("deprecated_lua_api_handling", "legacy");
-#else
settings->setDefault("deprecated_lua_api_handling", "log");
-#endif
settings->setDefault("kick_msg_shutdown", "Server shutting down.");
settings->setDefault("kick_msg_crash", "This server has experienced an internal error. You will now be disconnected.");