From 5290e3fcd8cd4707b1cf550cfc265d36d6c6f3f9 Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 13 Mar 2024 02:09:33 -0700 Subject: [PATCH] Loop camera: do not pan with drifts This would offset the camera in loops. Bad since they sometimes have very specific parameters. --- src/p_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index 3da0ceee3..c52e5b136 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -3356,7 +3356,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall y = mo->y - FixedMul(FINESINE((angle>>ANGLETOFINESHIFT) & FINEMASK), distxy); // SRB2Kart: set camera panning - if (camstill || resetcalled || player->playerstate == PST_DEAD) + if (camstill || resetcalled || player->playerstate == PST_DEAD || player->loop.radius) pan = xpan = ypan = 0; else {