From d2bfc673a998c5027af13717d000b275bdb3f3a2 Mon Sep 17 00:00:00 2001 From: lachwright Date: Sat, 1 Feb 2020 17:01:27 +0800 Subject: [PATCH] Distance orbital camera appropriately when gr_shearing is enabled --- src/p_user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index 44bc31b90..399b1fbbf 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -10162,9 +10162,11 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall if (camorbit) //Sev here, I'm guessing this is where orbital cam lives { - if (rendermode == render_opengl) +#ifdef HWRENDER + if (rendermode == render_opengl && !cv_grshearing.value) distxy = FixedMul(dist, FINECOSINE((focusaiming>>ANGLETOFINESHIFT) & FINEMASK)); else +#endif distxy = dist; distz = -FixedMul(dist, FINESINE((focusaiming>>ANGLETOFINESHIFT) & FINEMASK)) + slopez; }