mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-07 00:11:22 +00:00
- Initialize viewbob members for playerResetPosture()
copied from NBlood commit 1d72f1deba850cf616e443647064fddfa192f543
This commit is contained in:
parent
84834b0095
commit
dd1178df91
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue