From a8a4f06aa3238905f171ba55bd3b7666bb8e47d1 Mon Sep 17 00:00:00 2001 From: ZTsukei Date: Thu, 10 Aug 2017 17:37:07 -0400 Subject: [PATCH] Corrected type masking in d_clisrv.c --- src/d_clisrv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 918026db..d5300e06 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -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;