mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-17 23:21:05 +00:00
Send kartstuff when joining netgame
This commit is contained in:
parent
d860202b8a
commit
2472d3e39f
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,8 @@ static void P_NetArchivePlayers(void)
|
|||
|
||||
for (j = 0; j < NUMPOWERS; j++)
|
||||
WRITEUINT16(save_p, players[i].powers[j]);
|
||||
for (j = 0; j < NUMKARTSTUFF; j++)
|
||||
WRITEUINT16(save_p, players[i].kartstuff[j]);
|
||||
|
||||
WRITEUINT8(save_p, players[i].playerstate);
|
||||
WRITEUINT32(save_p, players[i].pflags);
|
||||
|
@ -315,6 +317,8 @@ static void P_NetUnArchivePlayers(void)
|
|||
|
||||
for (j = 0; j < NUMPOWERS; j++)
|
||||
players[i].powers[j] = READUINT16(save_p);
|
||||
for (j = 0; j < NUMKARTSTUFF; j++)
|
||||
players[i].kartstuff[j] = READUINT16(save_p);
|
||||
|
||||
players[i].playerstate = READUINT8(save_p);
|
||||
players[i].pflags = READUINT32(save_p);
|
||||
|
|
Loading…
Reference in a new issue