mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
- fixed: P_SpawnMapThing forced gravity instead of disabling it when being given Gravity = 0 from UDMF.
This commit is contained in:
parent
6ae266c76e
commit
5b059971f0
1 changed files with 5 additions and 1 deletions
|
@ -5063,7 +5063,11 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
|
||||||
if (mthing->FloatbobPhase >= 0 && mthing->FloatbobPhase < 64) mobj->FloatBobPhase = mthing->FloatbobPhase;
|
if (mthing->FloatbobPhase >= 0 && mthing->FloatbobPhase < 64) mobj->FloatBobPhase = mthing->FloatbobPhase;
|
||||||
if (mthing->Gravity < 0) mobj->Gravity = -mthing->Gravity;
|
if (mthing->Gravity < 0) mobj->Gravity = -mthing->Gravity;
|
||||||
else 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.
|
// 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))
|
if (mobj->specialf1 == 0 || !(mobj->flags2 & MF2_FLOATBOB) || !(ib_compatflags & BCOMPATF_FLOATBOB))
|
||||||
|
|
Loading…
Reference in a new issue