mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 18:08:44 +00:00
Fixed: Define math.fmod as a function for Lua 5.0
This commit is contained in:
parent
712f9ad2a0
commit
a886559bf6
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,12 @@ function getDbPropU(dbEntry)
|
||||||
return value
|
return value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if string.find(_VERSION, "Lua 5.0") then
|
||||||
|
function math.fmod(a, b)
|
||||||
|
return math.mod(a, b)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
|
||||||
-- create the game namespace without reseting if already created in an other file.
|
-- create the game namespace without reseting if already created in an other file.
|
||||||
if (game==nil) then
|
if (game==nil) then
|
||||||
|
|
Loading…
Reference in a new issue