From 071347d7fbdfff87e521ab39409902d73f3efdde Mon Sep 17 00:00:00 2001 From: Ijon Date: Wed, 26 Dec 2018 18:19:50 -0600 Subject: [PATCH] NOFRICTION now applies to Z friction when flying or swimming --- src/p_mobj.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 40ab761a1..98f880365 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -2530,9 +2530,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;