Skip to content
Snippets Groups Projects
Commit af7c2894 authored by Vanessa Ezekowitz's avatar Vanessa Ezekowitz
Browse files

Added default setting for seed_diff (0). Accidentally left it out, it is

needed to allow old mods to use the new function without changes.
parent ae0374cf
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,7 @@ end ...@@ -91,6 +91,7 @@ end
-- The spawning ABM -- The spawning ABM
spawn_on_surfaces = function(sdelay, splant, sradius, schance, ssurface, savoid, seed_diff, lightmin, lightmax, nneighbors, ocount) spawn_on_surfaces = function(sdelay, splant, sradius, schance, ssurface, savoid, seed_diff, lightmin, lightmax, nneighbors, ocount)
if seed_diff == nil then seed_diff = 0 end
if lightmin == nil then lightmin = 0 end if lightmin == nil then lightmin = 0 end
if lightmax == nil then lightmax = LIGHT_MAX end if lightmax == nil then lightmax = LIGHT_MAX end
if nneighbors == nil then nneighbors = ssurface end if nneighbors == nil then nneighbors = ssurface end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment