mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Lua: add INLEVEL check and return value to K_KartBouncing
This commit is contained in:
parent
31f168de72
commit
50f2244db3
1 changed files with 3 additions and 2 deletions
|
|
@ -3591,12 +3591,13 @@ static int lib_kKartBouncing(lua_State *L)
|
|||
mobj_t *mobj1 = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||
mobj_t *mobj2 = *((mobj_t **)luaL_checkudata(L, 2, META_MOBJ));
|
||||
NOHUD
|
||||
INLEVEL
|
||||
if (!mobj1)
|
||||
return LUA_ErrInvalid(L, "mobj_t");
|
||||
if (!mobj2)
|
||||
return LUA_ErrInvalid(L, "mobj_t");
|
||||
K_KartBouncing(mobj1, mobj2);
|
||||
return 0;
|
||||
lua_pushboolean(L, K_KartBouncing(mobj1, mobj2));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lib_kKartPainEnergyFling(lua_State *L)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue