don't check collision during spectating in all player perspectives

Related to 3c5012e
This commit is contained in:
aurhat
2021-10-20 23:01:35 +02:00
parent 7cc9f1a11f
commit e73639461b
+1 -1
View File
@@ -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;