Duke/RR: fixed player dying when falling from great heights while god mode being on.

This commit is contained in:
Christoph Oelckers 2023-11-11 09:45:19 +01:00
parent f4fee750d5
commit 2cf474bddc
2 changed files with 2 additions and 2 deletions

View file

@ -707,7 +707,7 @@ static void movement(DDukePlayer* const p, ESyncBits actions, sectortype* psect,
S_StopSound(DUKE_SCREAM, pact);
if (!p->insector() || p->cursector->lotag != 1)
{
if (p->falling_counter > 62) quickkill(p);
if (p->falling_counter > 62 && !ud.god) quickkill(p);
else if (p->falling_counter > 9)
{

View file

@ -1218,7 +1218,7 @@ static void movement(DDukePlayer* const p, ESyncBits actions, sectortype* psect,
if (!p->insector() || p->cursector->lotag != 1)
{
if (isRRRA()) p->MotoOnGround = 1;
if (p->falling_counter > 62 || (isRRRA() && p->falling_counter > 2 && p->insector() && p->cursector->lotag == 802))
if ((p->falling_counter > 62 || (isRRRA() && p->falling_counter > 2 && p->insector() && p->cursector->lotag == 802)) && !ud.god)
quickkill(p);
else if (p->falling_counter > 9)