mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 02:01:15 +00:00
Corrected type masking in d_clisrv.c
This commit is contained in:
parent
fd85c536ff
commit
a8a4f06aa3
1 changed files with 4 additions and 4 deletions
|
@ -518,9 +518,9 @@ static inline void resynch_write_player(resynch_pak *rsp, const size_t i)
|
|||
for (j = 0; j < NUMPOWERS; ++j)
|
||||
rsp->powers[j] = (UINT16)SHORT(players[i].powers[j]);
|
||||
for (j = 0; j < NUMKARTSTUFF; ++j)
|
||||
rsp->kartstuff[j] = (INT32)SHORT(players[i].kartstuff[j]); // SRB2kart
|
||||
rsp->kartstuff[j] = LONG(players[i].kartstuff[j]); // SRB2kart
|
||||
for (j = 0; j < MAXPLAYERS; ++j)
|
||||
rsp->collide[j] = (UINT8)SHORT(players[i].collide[j]); // SRB2kart
|
||||
rsp->collide[j] = (UINT8)players[i].collide[j]; // SRB2kart
|
||||
|
||||
// Score is resynched in the rspfirm resync packet
|
||||
rsp->health = 0; // resynched with mo health
|
||||
|
@ -652,9 +652,9 @@ static void resynch_read_player(resynch_pak *rsp)
|
|||
for (j = 0; j < NUMPOWERS; ++j)
|
||||
players[i].powers[j] = (UINT16)SHORT(rsp->powers[j]);
|
||||
for (j = 0; j < NUMKARTSTUFF; ++j)
|
||||
players[i].kartstuff[j] = (INT32)SHORT(rsp->kartstuff[j]); // SRB2kart
|
||||
players[i].kartstuff[j] = LONG(rsp->kartstuff[j]); // SRB2kart
|
||||
for (j = 0; j < MAXPLAYERS; ++j)
|
||||
players[i].collide[j] = (UINT8)SHORT(rsp->collide[j]); // SRB2kart
|
||||
players[i].collide[j] = (UINT8)rsp->collide[j]; // SRB2kart
|
||||
|
||||
// Score is resynched in the rspfirm resync packet
|
||||
players[i].health = rsp->health;
|
||||
|
|
Loading…
Reference in a new issue