Skip to content

Commit

Permalink
Fixed bug where view did not lower after death with weapon-only bobbing.
Browse files Browse the repository at this point in the history
  • Loading branch information
JadingTsunami committed Apr 25, 2024
1 parent 20eceae commit f70a647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prboom2/src/p_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void P_CalcHeight (player_t* player)
player->bob = MAXBOB;
}

if (!onground || player->cheats & CF_NOMOMENTUM || C_CvarIsSet("weapon_bob_only"))
if (!onground || player->cheats & CF_NOMOMENTUM || (player->health > 0 && C_CvarIsSet("weapon_bob_only")))
{
player->viewz = player->mo->z + VIEWHEIGHT;

Expand Down

0 comments on commit f70a647

Please sign in to comment.