From e73639461b519d65177d49c04dd2b91adaa69e01 Mon Sep 17 00:00:00 2001 From: aurhat <6187373+aurhat@users.noreply.github.com> Date: Wed, 20 Oct 2021 23:01:35 +0200 Subject: [PATCH] don't check collision during spectating in all player perspectives Related to 3c5012e --- source/src/physics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 20b09365..016ba583 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -366,7 +366,7 @@ void resizephysent(physent *pl, int moveres, int curtime, float min, float max) { pl->eyeheight += h; pl->o.z += h; - if(collide(pl) && !(pl != player1 && player1->isspectating() && player1->spectatemode==SM_FOLLOW1ST)) // don't check collision during spectating in 1st person view + if(collide(pl) && !(pl != player1 && player1->isspectating() && player1->spectatemode < SM_FLY)) { pl->eyeheight -= h; // collided, revert mini-step pl->o.z -= h;