From 8c46258ba9eab6e2079b2352facf81800aefab95 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sat, 9 Mar 2024 00:32:11 -0700 Subject: [PATCH] Promote driftboost vars to UINT16 --- src/d_player.h | 4 ++-- src/p_saveg.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/d_player.h b/src/d_player.h index f78a07e38..8e2240add 100644 --- a/src/d_player.h +++ b/src/d_player.h @@ -690,8 +690,8 @@ struct player_t SINT8 drift; // (-5 to 5) - Drifting Left or Right, plus a bigger counter = sharper turn fixed_t driftcharge; // Charge your drift so you can release a burst of speed - UINT8 driftboost; // (0 to 125) - Boost you get from drifting - UINT8 strongdriftboost; // (0 to 125) - While active, boost from drifting gives a stronger speed increase + UINT16 driftboost; // (0 to 125 baseline) - Boost you get from drifting + UINT16 strongdriftboost; // (0 to 125) - While active, boost from drifting gives a stronger speed increase UINT16 gateBoost; // Juicebox Manta Ring boosts UINT8 gateSound; // Sound effect combo diff --git a/src/p_saveg.c b/src/p_saveg.c index 8a1956ba4..05ae72a4f 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -437,8 +437,8 @@ static void P_NetArchivePlayers(savebuffer_t *save) WRITESINT8(save->p, players[i].drift); WRITEFIXED(save->p, players[i].driftcharge); - WRITEUINT8(save->p, players[i].driftboost); - WRITEUINT8(save->p, players[i].strongdriftboost); + WRITEUINT16(save->p, players[i].driftboost); + WRITEUINT16(save->p, players[i].strongdriftboost); WRITEUINT16(save->p, players[i].gateBoost); WRITEUINT8(save->p, players[i].gateSound); @@ -1025,8 +1025,8 @@ static void P_NetUnArchivePlayers(savebuffer_t *save) players[i].drift = READSINT8(save->p); players[i].driftcharge = READFIXED(save->p); - players[i].driftboost = READUINT8(save->p); - players[i].strongdriftboost = READUINT8(save->p); + players[i].driftboost = READUINT16(save->p); + players[i].strongdriftboost = READUINT16(save->p); players[i].gateBoost = READUINT16(save->p); players[i].gateSound = READUINT8(save->p);