mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-11 21:56:43 +00:00
Make displayplayer writable.
This commit is contained in:
parent
4a0fd2309e
commit
3125128be7
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…
Add table
Reference in a new issue