Actually fix F12 issues
This commit is contained in:
parent
e7574957bc
commit
4a26aec031
|
@ -3790,17 +3790,14 @@ boolean P_CameraThinker(player_t *player, camera_t *thiscam, boolean resetcalled
|
||||||
dummy.z = thiscam->z;
|
dummy.z = thiscam->z;
|
||||||
dummy.height = thiscam->height;
|
dummy.height = thiscam->height;
|
||||||
if (!resetcalled && !(player->pflags & PF_NOCLIP) && !P_CheckSight(&dummy, player->mo)) // TODO: "P_CheckCameraSight" instead.
|
if (!resetcalled && !(player->pflags & PF_NOCLIP) && !P_CheckSight(&dummy, player->mo)) // TODO: "P_CheckCameraSight" instead.
|
||||||
{
|
|
||||||
P_ResetCamera(player, thiscam);
|
P_ResetCamera(player, thiscam);
|
||||||
resetcalled = true;
|
else
|
||||||
}
|
|
||||||
else if (!resetcalled)
|
|
||||||
{
|
{
|
||||||
fixed_t camspeed = P_AproxDistance(thiscam->momx, thiscam->momy);
|
fixed_t camspeed = P_AproxDistance(thiscam->momx, thiscam->momy);
|
||||||
|
|
||||||
P_SlideCameraMove(thiscam);
|
P_SlideCameraMove(thiscam);
|
||||||
|
|
||||||
if (P_AproxDistance(thiscam->momx, thiscam->momy) == camspeed)
|
if (!resetcalled && P_AproxDistance(thiscam->momx, thiscam->momy) == camspeed)
|
||||||
{
|
{
|
||||||
P_ResetCamera(player, thiscam);
|
P_ResetCamera(player, thiscam);
|
||||||
resetcalled = true;
|
resetcalled = true;
|
||||||
|
|
Loading…
Reference in a new issue