Skip to content

Commit

Permalink
- Initialize viewbob members for playerResetPosture()
Browse files Browse the repository at this point in the history
copied from NBlood commit 1d72f1deba850cf616e443647064fddfa192f543
  • Loading branch information
coelckers committed May 5, 2022
1 parent 84834b0 commit dd1178d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/games/blood/src/player.cpp
Expand Up @@ -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;
}
}

//---------------------------------------------------------------------------
Expand Down

0 comments on commit dd1178d

Please sign in to comment.