diff options
| author | jussi | 2023-04-06 12:31:37 +0300 |
|---|---|---|
| committer | jussi | 2023-04-06 12:31:37 +0300 |
| commit | 2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a (patch) | |
| tree | 825775577403d9341045571adb266173513c4bbd /examples/resources/lib/utillib.lua | |
| parent | 198a74c0aa27389c062c47bc29187c58a9d6c4a1 (diff) | |
| download | reilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.tar.gz reilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.tar.bz2 reilua-enhanced-2526c9732e7ea35bc9ed3e43a4db77b7e6364c5a.zip | |
All global variables and functions are not in global RL table. doc_parser creates also ReiLua_API.lua.
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 |
