mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Add missing return value for filter/mipmap dropdown in mainmenu
This commit is contained in:
parent
516f1bcd16
commit
eb6b6ff333
@ -343,26 +343,32 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
|
|||||||
if fields["dd_filters"] == "No Filter" then
|
if fields["dd_filters"] == "No Filter" then
|
||||||
core.setting_set("bilinear_filter", "false")
|
core.setting_set("bilinear_filter", "false")
|
||||||
core.setting_set("trilinear_filter", "false")
|
core.setting_set("trilinear_filter", "false")
|
||||||
|
ddhandled = true
|
||||||
end
|
end
|
||||||
if fields["dd_filters"] == "Bilinear Filter" then
|
if fields["dd_filters"] == "Bilinear Filter" then
|
||||||
core.setting_set("bilinear_filter", "true")
|
core.setting_set("bilinear_filter", "true")
|
||||||
core.setting_set("trilinear_filter", "false")
|
core.setting_set("trilinear_filter", "false")
|
||||||
|
ddhandled = true
|
||||||
end
|
end
|
||||||
if fields["dd_filters"] == "Trilinear Filter" then
|
if fields["dd_filters"] == "Trilinear Filter" then
|
||||||
core.setting_set("bilinear_filter", "false")
|
core.setting_set("bilinear_filter", "false")
|
||||||
core.setting_set("trilinear_filter", "true")
|
core.setting_set("trilinear_filter", "true")
|
||||||
|
ddhandled = true
|
||||||
end
|
end
|
||||||
if fields["dd_mipmap"] == "No Mipmap" then
|
if fields["dd_mipmap"] == "No Mipmap" then
|
||||||
core.setting_set("mip_map", "false")
|
core.setting_set("mip_map", "false")
|
||||||
core.setting_set("anisotropic_filter", "false")
|
core.setting_set("anisotropic_filter", "false")
|
||||||
|
ddhandled = true
|
||||||
end
|
end
|
||||||
if fields["dd_mipmap"] == "Mipmap" then
|
if fields["dd_mipmap"] == "Mipmap" then
|
||||||
core.setting_set("mip_map", "true")
|
core.setting_set("mip_map", "true")
|
||||||
core.setting_set("anisotropic_filter", "false")
|
core.setting_set("anisotropic_filter", "false")
|
||||||
|
ddhandled = true
|
||||||
end
|
end
|
||||||
if fields["dd_mipmap"] == "Mipmap + Aniso. Filter" then
|
if fields["dd_mipmap"] == "Mipmap + Aniso. Filter" then
|
||||||
core.setting_set("mip_map", "true")
|
core.setting_set("mip_map", "true")
|
||||||
core.setting_set("anisotropic_filter", "true")
|
core.setting_set("anisotropic_filter", "true")
|
||||||
|
ddhandled = true
|
||||||
end
|
end
|
||||||
|
|
||||||
return ddhandled
|
return ddhandled
|
||||||
|
Loading…
Reference in New Issue
Block a user