Actually fix F12 issues

This commit is contained in:
lachwright 2019-12-07 02:27:48 +08:00
parent e7574957bc
commit 4a26aec031
1 changed files with 6 additions and 9 deletions

View File

@ -3790,17 +3790,14 @@ boolean P_CameraThinker(player_t *player, camera_t *thiscam, boolean resetcalled
dummy.z = thiscam->z;
dummy.height = thiscam->height;
if (!resetcalled && !(player->pflags & PF_NOCLIP) && !P_CheckSight(&dummy, player->mo)) // TODO: "P_CheckCameraSight" instead.
{
P_ResetCamera(player, thiscam);
resetcalled = true;
}
else if (!resetcalled)
else
{
fixed_t camspeed = P_AproxDistance(thiscam->momx, thiscam->momy);
P_SlideCameraMove(thiscam);
if (P_AproxDistance(thiscam->momx, thiscam->momy) == camspeed)
if (!resetcalled && P_AproxDistance(thiscam->momx, thiscam->momy) == camspeed)
{
P_ResetCamera(player, thiscam);
resetcalled = true;