mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
LUA_EvalMath: load math lib
This commit is contained in:
parent
ceab0399de
commit
971d686437
1 changed files with 4 additions and 0 deletions
|
|
@ -699,6 +699,10 @@ fixed_t LUA_EvalMath(const char *word)
|
|||
lua_pushboolean(L, true);
|
||||
lua_call(L, 1, 0);
|
||||
|
||||
lua_pushcfunction(L, LUA_MathLib);
|
||||
lua_pushboolean(L, true);
|
||||
lua_call(L, 1, 0);
|
||||
|
||||
// change ^ into ^^ for Lua.
|
||||
strcpy(buf, "return ");
|
||||
b = buf+strlen(buf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue