From e7574957bc14dadd9862a3714e1035c56d19f8c2 Mon Sep 17 00:00:00 2001 From: lachwright Date: Sat, 7 Dec 2019 01:52:40 +0800 Subject: [PATCH] Hopefully fix F12 issues --- src/p_mobj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 42c5234df..a7b48aaa4 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -3794,13 +3794,13 @@ boolean P_CameraThinker(player_t *player, camera_t *thiscam, boolean resetcalled P_ResetCamera(player, thiscam); resetcalled = true; } - else + else if (!resetcalled) { fixed_t camspeed = P_AproxDistance(thiscam->momx, thiscam->momy); P_SlideCameraMove(thiscam); - if (!resetcalled && P_AproxDistance(thiscam->momx, thiscam->momy) == camspeed) + if (P_AproxDistance(thiscam->momx, thiscam->momy) == camspeed) { P_ResetCamera(player, thiscam); resetcalled = true;