mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Make displayplayer
writable.
This commit is contained in:
parent
8a0f55e4ad
commit
f42dee1871
1 changed files with 7 additions and 0 deletions
|
@ -382,6 +382,13 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
|
|||
token = (UINT32)luaL_checkinteger(L, 2);
|
||||
else if (fastcmp(word, "gravity"))
|
||||
gravity = (fixed_t)luaL_checkinteger(L, 2);
|
||||
else if (fastcmp(word, "displayplayer"))
|
||||
{
|
||||
player_t *player = *((player_t **)luaL_checkudata(L, 2, META_PLAYER));
|
||||
|
||||
if (player)
|
||||
displayplayer = player - players;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue