Skip to content

Commit

Permalink
Fix rising of fly spectator
Browse files Browse the repository at this point in the history
  • Loading branch information
aurhat committed Sep 19, 2017
1 parent eec68e3 commit 323d8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/physics.cpp
Expand Up @@ -325,7 +325,7 @@ bool collide(physent *d, bool spawn, float drop, float rise)
const float spacelo = d->o.z-eyeheight-lo;
if(spacelo<0)
{
if(spacelo>-0.01)
if(spacelo>-0.01 || (spacelo>-0.1 && d==player1 && player1->spectatemode==SM_FLY))
{
d->o.z = lo+eyeheight; // stick on step
}
Expand Down

0 comments on commit 323d8e8

Please sign in to comment.