Skip to content
Permalink
Browse files

Advanced settings noiseparams: No tailing comma for empty flags

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 10, 2019
1 parent 80b9015 commit 9512c2986e2d5b8388860a51cce2a75f37e67bf6
Showing with 4 additions and 2 deletions.
  1. +4 −2 builtin/mainmenu/dlg_settings_advanced.lua
@@ -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

0 comments on commit 9512c29

Please sign in to comment.
You can’t perform that action at this time.