mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-05 00:12:16 +00:00
Let access spectator mobj
This commit is contained in:
parent
3386ff6b90
commit
1cedb32e51
1 changed files with 1 additions and 6 deletions
|
|
@ -190,12 +190,7 @@ static int player_get(lua_State *L)
|
||||||
else if (fastcmp(field,"name"))
|
else if (fastcmp(field,"name"))
|
||||||
lua_pushstring(L, player_names[plr-players]);
|
lua_pushstring(L, player_names[plr-players]);
|
||||||
else if (fastcmp(field,"mo"))
|
else if (fastcmp(field,"mo"))
|
||||||
{
|
LUA_PushUserdata(L, plr->mo, META_MOBJ);
|
||||||
if (plr->spectator)
|
|
||||||
lua_pushnil(L);
|
|
||||||
else
|
|
||||||
LUA_PushUserdata(L, plr->mo, META_MOBJ);
|
|
||||||
}
|
|
||||||
else if (fastcmp(field,"cmd"))
|
else if (fastcmp(field,"cmd"))
|
||||||
LUA_PushUserdata(L, &plr->cmd, META_TICCMD);
|
LUA_PushUserdata(L, &plr->cmd, META_TICCMD);
|
||||||
else if (fastcmp(field,"playerstate"))
|
else if (fastcmp(field,"playerstate"))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue