diff options
Diffstat (limited to 'examples/resources/lib/utillib.lua')
| -rw-r--r-- | examples/resources/lib/utillib.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/resources/lib/utillib.lua b/examples/resources/lib/utillib.lua index 7fb7405..3021465 100644 --- a/examples/resources/lib/utillib.lua +++ b/examples/resources/lib/utillib.lua @@ -15,7 +15,7 @@ function utillib.deepCopy( orig ) for origKey, origValue in next, orig, nil do -- If object has clone method, use that. if type( origValue ) == "table" and type( origValue.clone ) == "function" then - copy[ utillib.deepCopy( origKey ) ] = orig_value:clone() + copy[ utillib.deepCopy( origKey ) ] = origValue:clone() else copy[ utillib.deepCopy( origKey ) ] = utillib.deepCopy( origValue ) end @@ -128,9 +128,9 @@ end function utillib.wrapAngleRad( angle ) if angle < 0 then - return math.fmod( angle, PI * 2 ) + PI * 2 + return math.fmod( angle, RL.PI * 2 ) + RL.PI * 2 else - return math.fmod( angle, PI * 2 ) + return math.fmod( angle, RL.PI * 2 ) end end |
