Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Add lost souls' bounce bug emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeykt committed Mar 18, 2018
1 parent 886a838 commit a772ed7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions f_finale.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ void F_StartFinale (void)
case 20:
finaleflat = "RROCK07";
finaletext = t3text;
break;
case 30:
finaleflat = "RROCK17";
finaletext = t4text;
Expand Down
10 changes: 10 additions & 0 deletions p_mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ void P_ZMovement (mobj_t* mo)
{
// hit the floor

#if (EXE_VERSION >= EXE_VERSION_ULTIMATE)
// Note (id):
// somebody left this after the setting momz to 0,
// kinda useless there.
Expand All @@ -285,6 +286,7 @@ void P_ZMovement (mobj_t* mo)
// the skull slammed into something
mo->momz = -mo->momz;
}
#endif

if (mo->momz < 0)
{
Expand All @@ -302,6 +304,14 @@ void P_ZMovement (mobj_t* mo)
}
mo->z = mo->floorz;

#if (EXE_VERSION < EXE_VERSION_ULTIMATE)
if (mo->flags & MF_SKULLFLY)
{
// the skull slammed into something
mo->momz = -mo->momz;
}
#endif

if ( (mo->flags & MF_MISSILE)
&& !(mo->flags & MF_NOCLIP) )
{
Expand Down

0 comments on commit a772ed7

Please sign in to comment.