NOFRICTION now applies to Z friction when flying or swimming

This commit is contained in:
Ijon 2018-12-26 18:19:50 -06:00 committed by drfrag
parent 33067deb86
commit 50d8993e6e

View file

@ -2544,9 +2544,13 @@ void P_ZMovement (AActor *mo, double oldfloorz)
{
mo->AddZ(DAngle(360 / 80.f * level.maptime).Sin() / 8);
}
mo->Vel.Z *= FRICTION_FLY;
if (!(mo->flags8 & MF8_NOFRICTION))
{
mo->Vel.Z *= FRICTION_FLY;
}
}
if (mo->waterlevel && !(mo->flags & MF_NOGRAVITY))
if (mo->waterlevel && !(mo->flags & MF_NOGRAVITY) && !(mo->flags8 & MF8_NOFRICTION))
{
double friction = -1;