Skip to content

Commit

Permalink
PM_CheckFalling: fix punchangle axis (Z -> X)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Aug 14, 2024
1 parent 4e1cb10 commit ce621c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regamedll/pm_shared/pm_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2726,8 +2726,8 @@ void PM_CheckFalling()
pmove->flTimeStepSound = 300;

// Knock the screen around a little bit, temporary effect
// punch z axis
pmove->punchangle[2] = pmove->flFallVelocity * 0.013;
// punch X axis
pmove->punchangle[0] = pmove->flFallVelocity * 0.013;

if (pmove->punchangle[0] > 8.0f)
{
Expand Down

0 comments on commit ce621c3

Please sign in to comment.