- fixed copy/paste error in P_GetFriction resulting in incorrect calculation of movefactor.

This commit is contained in:
Christoph Oelckers 2016-03-30 10:08:06 +02:00
commit c2e2910399
2 changed files with 3 additions and 3 deletions

View file

@ -557,7 +557,7 @@ double P_GetFriction(const AActor *mo, double *frictionfactor)
if (rover->flags & FF_SOLID)
{
// Must be standing on a solid floor
if (mo->Z() != rover->top.plane->ZatPoint(pos)) continue;
if (!mo->isAtZ(rover->top.plane->ZatPoint(pos))) continue;
}
else if (rover->flags & FF_SWIMMABLE)
{
@ -573,7 +573,7 @@ double P_GetFriction(const AActor *mo, double *frictionfactor)
if (newfriction < friction || friction == ORIG_FRICTION)
{
friction = newfriction;
movefactor = newmf * 0.5;
movefactor = newmf;
}
}