- Initialize viewbob members for playerResetPosture()

copied from NBlood commit 1d72f1deba850cf616e443647064fddfa192f543
This commit is contained in:
Christoph Oelckers 2022-05-06 00:59:53 +02:00
parent 84834b0095
commit dd1178df91

View file

@ -737,6 +737,15 @@ void playerResetPowerUps(PLAYER* pPlayer)
void playerResetPosture(PLAYER* pPlayer) {
memcpy(pPlayer->pPosture, gPostureDefaults, sizeof(gPostureDefaults));
if (!VanillaMode()) {
pPlayer->bobPhase = 0;
pPlayer->bobAmp = 0;
pPlayer->swayAmp = 0;
pPlayer->bobHeight = 0;
pPlayer->bobWidth = 0;
pPlayer->swayHeight = 0;
pPlayer->swayWidth = 0;
}
}
//---------------------------------------------------------------------------