Skip to content

Commit

Permalink
Advanced settings noiseparams: No tailing comma for empty flags
Browse files Browse the repository at this point in the history
Previously, when editing noiseparams and disabling all the noise
flags, the noiseparam is displyed in advanced settings with a
tailing comma.
  • Loading branch information
srifqi authored and paramat committed Jan 19, 2019
1 parent 80b9015 commit 9512c29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions builtin/mainmenu/dlg_settings_advanced.lua
Expand Up @@ -522,8 +522,10 @@ local function get_current_np_group_as_string(setting)
value.seed .. ", " ..
value.octaves .. ", " ..
value.persistence .. ", " ..
value.lacunarity .. ", " ..
value.flags
value.lacunarity
if value.flags ~= "" then
t = t .. ", " .. value.flags
end
end
return t
end
Expand Down

0 comments on commit 9512c29

Please sign in to comment.