mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-01 08:41:49 +00:00
buttons_last -> lastbuttons
This commit is contained in:
parent
ce8e389a2d
commit
c391d76c11
1 changed files with 11 additions and 2 deletions
|
@ -372,8 +372,8 @@ static int player_get(lua_State *L)
|
||||||
lua_pushinteger(L, plr->bot);
|
lua_pushinteger(L, plr->bot);
|
||||||
else if (fastcmp(field,"botleader"))
|
else if (fastcmp(field,"botleader"))
|
||||||
LUA_PushUserdata(L, plr->botleader, META_PLAYER);
|
LUA_PushUserdata(L, plr->botleader, META_PLAYER);
|
||||||
else if (fastcmp(field,"buttons_last"))
|
else if (fastcmp(field,"lastbuttons"))
|
||||||
lua_pushinteger(L, plr->buttons_last);
|
lua_pushinteger(L, plr->lastbuttons);
|
||||||
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"))
|
||||||
|
@ -723,6 +723,15 @@ static int player_set(lua_State *L)
|
||||||
plr->outofcoop = lua_toboolean(L, 3);
|
plr->outofcoop = lua_toboolean(L, 3);
|
||||||
else if (fastcmp(field,"bot"))
|
else if (fastcmp(field,"bot"))
|
||||||
return NOSET;
|
return NOSET;
|
||||||
|
else if (fastcmp(field,"botleader"))
|
||||||
|
{
|
||||||
|
player_t *player = NULL;
|
||||||
|
if (!lua_isnil(L, 3))
|
||||||
|
player = *((player_t **)luaL_checkudata(L, 3, META_PLAYER));
|
||||||
|
plr->botleader = player;
|
||||||
|
}
|
||||||
|
else if (fastcmp(field,"lastbuttons"))
|
||||||
|
plr->lastbuttons = (UINT16)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"))
|
||||||
|
|
Loading…
Reference in a new issue