aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-06-30 17:10:28 +0200
committersfan5 <sfan5@live.de>2021-06-30 17:10:28 +0200
commit72927b73ca857acd4dc5a40a96be220d090436f3 (patch)
tree54b8600363ed4da395d22453475213efa8113e13 /builtin
parentfa4dee0e62dcf2bbfb68b17cf97e438eab58be93 (diff)
downloadminetest-72927b73ca857acd4dc5a40a96be220d090436f3.tar.gz
minetest-72927b73ca857acd4dc5a40a96be220d090436f3.tar.bz2
minetest-72927b73ca857acd4dc5a40a96be220d090436f3.zip
Fix spurious shadow enablement in mainmenu
fixes #11394
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/tab_settings.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua
index 8bc5bf8b6..f06e35872 100644
--- a/builtin/mainmenu/tab_settings.lua
+++ b/builtin/mainmenu/tab_settings.lua
@@ -369,7 +369,6 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
if fields["dd_shadows"] == labels.shadow_levels[1] then
core.settings:set("enable_dynamic_shadows", "false")
else
- core.settings:set("enable_dynamic_shadows", "true")
local shadow_presets = {
[2] = { 80, 512, "true", 0, "false" },
[3] = { 120, 1024, "true", 1, "false" },
@@ -379,6 +378,7 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
}
local s = shadow_presets[table.indexof(labels.shadow_levels, fields["dd_shadows"])]
if s then
+ core.settings:set("enable_dynamic_shadows", "true")
core.settings:set("shadow_map_max_distance", s[1])
core.settings:set("shadow_map_texture_size", s[2])
core.settings:set("shadow_map_texture_32bit", s[3])