Update player slope immediately after lookdir (#1235)

This commit is contained in:
ceski 2023-10-25 06:02:36 -07:00 committed by GitHub
parent 921f311cea
commit 1cec87ee7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
@ -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;
}