Don't check collision during spectating in 1st person view

It fixes the problem, that during spectating in 1st person view,
when spectated player collided (for example with wall) and crouched,
then his crouches weren't visible for player1.
This commit is contained in:
aurhat
2016-10-08 20:19:57 +02:00
parent 4858e9db75
commit 3c5012e768
+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))
if(collide(pl) && !(pl != player1 && player1->isspectating() && player1->spectatemode==SM_FOLLOW1ST)) // don't check collision during spectating in 1st person view
{
pl->eyeheight -= h; // collided, revert mini-step
pl->o.z -= h;