Skip to content

Commit

Permalink
Fix the shown default value of noise settings not containing noise flags
Browse files Browse the repository at this point in the history
I can't really make sense of the comment in the removed line.
This *should* not break anything, not even in `generate_from_settingtypes.lua`.
(That file uses `setting.default`, but only for settings which aren't noise parameter settings.)
  • Loading branch information
grorp committed Sep 12, 2023
1 parent 246766e commit 3b9759e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion builtin/mainmenu/settings/settingtypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ local function parse_setting_line(settings, line, read_all, base_level, allow_se
local flags = ""
if index then
flags = default:sub(index)
default = default:sub(1, index - 3) -- Make sure no flags in single-line format
end
table.insert(values, flags)

Expand Down

0 comments on commit 3b9759e

Please sign in to comment.