Fix two global var warnings
This commit is contained in:
parent
8819545e83
commit
7a1d980f11
|
@ -27,7 +27,7 @@ if gigatree_decoration_id then
|
|||
-- Returned numbers are offsets.
|
||||
local rnd_minmax = function(pr)
|
||||
local min = pr:next(- clust_size + 1, 0)
|
||||
max = min + (clust_size - 1)
|
||||
local max = min + (clust_size - 1)
|
||||
return min, max
|
||||
end
|
||||
|
||||
|
|
|
@ -572,7 +572,7 @@ function village.spawn_village(pos, pr, force_place_well)
|
|||
local t1 = os.clock()
|
||||
|
||||
-- Every village generation starts with a well.
|
||||
local chunk_ok, state = village.spawn_chunk(pos, state, "0", replace, pr, "well", nil, force_place_well == true)
|
||||
local chunk_ok, state = village.spawn_chunk(pos, nil, "0", replace, pr, "well", nil, force_place_well == true)
|
||||
if not chunk_ok then
|
||||
-- Oops! Not enough space for the well. Village generation fails.
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue