Fix typo in nyan cat generation

This commit is contained in:
Perttu Ahola 2012-05-20 18:32:58 +03:00
parent 3a1a7d511d
commit 894f98d878

View File

@ -118,7 +118,7 @@ function generate_nyancats(seed, minp, maxp)
local pr = PseudoRandom(seed + 9324342) local pr = PseudoRandom(seed + 9324342)
local max_num_nyancats = math.floor(volume / (16*16*16)) local max_num_nyancats = math.floor(volume / (16*16*16))
for i=1,max_num_nyancats do for i=1,max_num_nyancats do
if pr.next(0, 1000) == 0 then if pr:next(0, 1000) == 0 then
local x0 = pr:next(minp.x, maxp.x) local x0 = pr:next(minp.x, maxp.x)
local y0 = pr:next(minp.y, maxp.y) local y0 = pr:next(minp.y, maxp.y)
local z0 = pr:next(minp.z, maxp.z) local z0 = pr:next(minp.z, maxp.z)