mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +00:00
RR: fix issue where the player was unable to look or move under some circumstances after being "killed" with god mode enabled
Replicates changes to Duke3D code from 5e4fd35738
.
This commit is contained in:
parent
47c16e4872
commit
e641c82cdc
1 changed files with 2 additions and 2 deletions
|
@ -3184,7 +3184,7 @@ static int P_CheckLockedMovement(int const playerNum)
|
||||||
auto &thisPlayer = g_player[playerNum];
|
auto &thisPlayer = g_player[playerNum];
|
||||||
auto const pPlayer = thisPlayer.ps;
|
auto const pPlayer = thisPlayer.ps;
|
||||||
|
|
||||||
if (pPlayer->dead_flag || pPlayer->fist_incs || pPlayer->transporter_hold > 2 || pPlayer->hard_landing || pPlayer->access_incs > 0
|
if ((pPlayer->dead_flag && !ud.god) || pPlayer->fist_incs || pPlayer->transporter_hold > 2 || pPlayer->hard_landing || pPlayer->access_incs > 0
|
||||||
|| pPlayer->knee_incs > 0
|
|| pPlayer->knee_incs > 0
|
||||||
|| (PWEAPON(playerNum, pPlayer->curr_weapon, WorksLike) == TRIPBOMB_WEAPON && pPlayer->kickback_pic > 1
|
|| (PWEAPON(playerNum, pPlayer->curr_weapon, WorksLike) == TRIPBOMB_WEAPON && pPlayer->kickback_pic > 1
|
||||||
&& pPlayer->kickback_pic < PWEAPON(playerNum, pPlayer->curr_weapon, FireDelay)))
|
&& pPlayer->kickback_pic < PWEAPON(playerNum, pPlayer->curr_weapon, FireDelay)))
|
||||||
|
@ -7922,7 +7922,7 @@ check_enemy_sprite:
|
||||||
if (g_levelTextTime > 0)
|
if (g_levelTextTime > 0)
|
||||||
g_levelTextTime--;
|
g_levelTextTime--;
|
||||||
|
|
||||||
if (pSprite->extra <= 0)
|
if (pSprite->extra <= 0 && !ud.god)
|
||||||
{
|
{
|
||||||
P_Dead(playerNum, sectorLotag, floorZ, ceilZ);
|
P_Dead(playerNum, sectorLotag, floorZ, ceilZ);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue