mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fix love.math.noise(nil) to error instead of returning nil.
This commit is contained in:
@@ -88,7 +88,7 @@ function love_math.noise(x, y, z, w)
|
||||
return tonumber(ffifuncs.noise3(x, y, z))
|
||||
elseif y ~= nil then
|
||||
return tonumber(ffifuncs.noise2(x, y))
|
||||
elseif x ~= nil then
|
||||
else
|
||||
return tonumber(ffifuncs.noise1(x))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user