Merge branch 'master' into zscript
This commit is contained in:
commit
d1f5d916c2
19 changed files with 64 additions and 96 deletions
|
|
@ -3586,11 +3586,14 @@ void AActor::Tick ()
|
|||
}
|
||||
}
|
||||
|
||||
UnlinkFromWorld ();
|
||||
flags |= MF_NOBLOCKMAP;
|
||||
SetXYZ(Vec3Offset(Vel));
|
||||
CheckPortalTransition(false);
|
||||
LinkToWorld ();
|
||||
if (!Vel.isZero() || !(flags & MF_NOBLOCKMAP))
|
||||
{
|
||||
UnlinkFromWorld();
|
||||
flags |= MF_NOBLOCKMAP;
|
||||
SetXYZ(Vec3Offset(Vel));
|
||||
CheckPortalTransition(false);
|
||||
LinkToWorld();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -5327,7 +5330,11 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
|
|||
if (mthing->FloatbobPhase >= 0 && mthing->FloatbobPhase < 64) mobj->FloatBobPhase = mthing->FloatbobPhase;
|
||||
if (mthing->Gravity < 0) mobj->Gravity = -mthing->Gravity;
|
||||
else if (mthing->Gravity > 0) mobj->Gravity *= mthing->Gravity;
|
||||
else mobj->flags &= ~MF_NOGRAVITY;
|
||||
else
|
||||
{
|
||||
mobj->flags |= MF_NOGRAVITY;
|
||||
mobj->Gravity = 0;
|
||||
}
|
||||
|
||||
// For Hexen floatbob 'compatibility' we do not really want to alter the floorz.
|
||||
if (mobj->specialf1 == 0 || !(mobj->flags2 & MF2_FLOATBOB) || !(ib_compatflags & BCOMPATF_FLOATBOB))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue