Skip to content
Snippets Groups Projects
Commit 0a60fe0b authored by Claire Ellis's avatar Claire Ellis :speech_balloon:
Browse files

Almost forgot: player.blocked

parent b112e12c
No related branches found
No related tags found
1 merge request!1383Multiplayer Bot Features (aka AddPlayer)
...@@ -374,6 +374,8 @@ static int player_get(lua_State *L) ...@@ -374,6 +374,8 @@ static int player_get(lua_State *L)
LUA_PushUserdata(L, plr->botleader, META_PLAYER); LUA_PushUserdata(L, plr->botleader, META_PLAYER);
else if (fastcmp(field,"lastbuttons")) else if (fastcmp(field,"lastbuttons"))
lua_pushinteger(L, plr->lastbuttons); lua_pushinteger(L, plr->lastbuttons);
else if (fastcmp(field,"blocked"))
lua_pushboolean(L, plr->blocked);
else if (fastcmp(field,"jointime")) else if (fastcmp(field,"jointime"))
lua_pushinteger(L, plr->jointime); lua_pushinteger(L, plr->jointime);
else if (fastcmp(field,"quittime")) else if (fastcmp(field,"quittime"))
...@@ -732,6 +734,8 @@ static int player_set(lua_State *L) ...@@ -732,6 +734,8 @@ static int player_set(lua_State *L)
} }
else if (fastcmp(field,"lastbuttons")) else if (fastcmp(field,"lastbuttons"))
plr->lastbuttons = (UINT16)luaL_checkinteger(L, 3); plr->lastbuttons = (UINT16)luaL_checkinteger(L, 3);
else if (fastcmp(field,"blocked"))
plr->blocked = (UINT8)luaL_checkinteger(L, 3);
else if (fastcmp(field,"jointime")) else if (fastcmp(field,"jointime"))
plr->jointime = (tic_t)luaL_checkinteger(L, 3); plr->jointime = (tic_t)luaL_checkinteger(L, 3);
else if (fastcmp(field,"quittime")) else if (fastcmp(field,"quittime"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment