mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose topAccel to netsave/lua
This commit is contained in:
parent
a76507e17f
commit
98c390cbc5
2 changed files with 8 additions and 0 deletions
|
|
@ -345,6 +345,8 @@ static int player_get(lua_State *L)
|
|||
lua_pushinteger(L, plr->finalfailsafe);
|
||||
else if (fastcmp(field,"lastsafelap"))
|
||||
lua_pushinteger(L, plr->lastsafelap);
|
||||
else if (fastcmp(field,"topAccel"))
|
||||
lua_pushinteger(L, plr->topAccel);
|
||||
else if (fastcmp(field,"instaWhipCharge"))
|
||||
lua_pushinteger(L, plr->instaWhipCharge);
|
||||
else if (fastcmp(field,"defenseLockout"))
|
||||
|
|
@ -865,6 +867,8 @@ static int player_set(lua_State *L)
|
|||
plr->finalfailsafe = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"lastsafelap"))
|
||||
plr->lastsafelap = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"topAccel"))
|
||||
plr->topAccel = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"instaWhipCharge"))
|
||||
plr->instaWhipCharge = luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"defenseLockout"))
|
||||
|
|
|
|||
|
|
@ -571,6 +571,8 @@ static void P_NetArchivePlayers(savebuffer_t *save)
|
|||
|
||||
WRITEUINT8(save->p, players[i].lastsafelap);
|
||||
|
||||
WRITEFIXED(save->p, players[i].topAccel);
|
||||
|
||||
WRITEMEM(save->p, players[i].public_key, PUBKEYLENGTH);
|
||||
|
||||
WRITEUINT8(save->p, players[i].instaWhipCharge);
|
||||
|
|
@ -1142,6 +1144,8 @@ static void P_NetUnArchivePlayers(savebuffer_t *save)
|
|||
|
||||
players[i].lastsafelap = READUINT8(save->p);
|
||||
|
||||
players[i].topAccel = READFIXED(save->p);
|
||||
|
||||
READMEM(save->p, players[i].public_key, PUBKEYLENGTH);
|
||||
|
||||
players[i].instaWhipCharge = READUINT8(save->p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue