Fix two global var warnings

This commit is contained in:
Wuzzy 2019-09-22 04:53:13 +02:00
parent 8819545e83
commit 7a1d980f11
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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