Skip to content
Snippets Groups Projects
Commit faf16a6a authored by James R.'s avatar James R.
Browse files

Let access spectator mobj

parent b62000d2
No related branches found
No related tags found
No related merge requests found
...@@ -112,12 +112,7 @@ static int player_get(lua_State *L) ...@@ -112,12 +112,7 @@ static int player_get(lua_State *L)
// Kept for backward-compatibility // Kept for backward-compatibility
// Should be fixed to work like "realmo" later // Should be fixed to work like "realmo" later
else if (fastcmp(field,"mo")) else if (fastcmp(field,"mo"))
{
if (plr->spectator)
lua_pushnil(L);
else
LUA_PushUserdata(L, plr->mo, META_MOBJ); 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"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment