mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Let access spectator mobj
This commit is contained in:
parent
9e586c348c
commit
7890c9b83a
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…
Reference in a new issue