mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
NOFRICTION now applies to Z friction when flying or swimming
This commit is contained in:
parent
33067deb86
commit
50d8993e6e
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue