Skip to content

Commit

Permalink
Update player slope immediately after lookdir (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceski-1 authored Oct 25, 2023
1 parent 921f311 commit 1cec87e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/p_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ void P_PlayerThink (player_t* player)
player->lookdir = 0;
player->centering = false;
}

player->slope = PLAYER_SLOPE(player);
}

// [crispy] weapon recoil pitch
Expand All @@ -405,7 +407,6 @@ void P_PlayerThink (player_t* player)

if (player->playerstate == PST_DEAD)
{
player->slope = PLAYER_SLOPE(player); // For 3D audio pitch angle.
P_DeathThink (player);
return;
}
Expand Down

0 comments on commit 1cec87e

Please sign in to comment.