mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
No, seriously, don't use STRINGN for pubkeys
This commit is contained in:
parent
bc9b4ef6a5
commit
0df4251bc7
2 changed files with 5 additions and 5 deletions
|
|
@ -4061,25 +4061,25 @@ const char *name3, uint8_t *key3, const char *name4, uint8_t *key4)
|
|||
{
|
||||
nodetoplayer[node] = newplayernum;
|
||||
WRITESTRINGN(buf_p, name, MAXPLAYERNAME);
|
||||
WRITESTRINGN(buf_p, key, 32);
|
||||
WRITEMEM(buf_p, key, 32);
|
||||
}
|
||||
else if (playerpernode[node] < 2)
|
||||
{
|
||||
nodetoplayer2[node] = newplayernum;
|
||||
WRITESTRINGN(buf_p, name2, MAXPLAYERNAME);
|
||||
WRITESTRINGN(buf_p, key2, 32);
|
||||
WRITEMEM(buf_p, key2, 32);
|
||||
}
|
||||
else if (playerpernode[node] < 3)
|
||||
{
|
||||
nodetoplayer3[node] = newplayernum;
|
||||
WRITESTRINGN(buf_p, name3, MAXPLAYERNAME);
|
||||
WRITESTRINGN(buf_p, key3, 32);
|
||||
WRITEMEM(buf_p, key3, 32);
|
||||
}
|
||||
else if (playerpernode[node] < 4)
|
||||
{
|
||||
nodetoplayer4[node] = newplayernum;
|
||||
WRITESTRINGN(buf_p, name4, MAXPLAYERNAME);
|
||||
WRITESTRINGN(buf_p, key4, 32);
|
||||
WRITEMEM(buf_p, key4, 32);
|
||||
}
|
||||
|
||||
WRITEUINT8(buf_p, nodetoplayer[node]); // consoleplayer
|
||||
|
|
|
|||
|
|
@ -789,7 +789,7 @@ static void P_NetUnArchivePlayers(savebuffer_t *save)
|
|||
players[i].sliptideZipDelay = READUINT8(save->p);
|
||||
players[i].sliptideZipBoost = READUINT16(save->p);
|
||||
|
||||
READSTRINGN(save->p, players[i].public_key, 32);
|
||||
READMEM(save->p, players[i].public_key, 32);
|
||||
|
||||
// respawnvars_t
|
||||
players[i].respawn.state = READUINT8(save->p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue