diff --git a/src/p_user.c b/src/p_user.c index 63f43bdab6c77c07dbfca8668c45eeeabe20690c..7e0ef2060d3e60b48881747247519f1a23df8491 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -4547,17 +4547,17 @@ void P_PlayerThink(player_t *player) if (player->nocontrol && player->nocontrol < UINT16_MAX) { - if (!(--player->nocontrol)) - { - if (player->pflags & PF_FAULT) - { - player->pflags &= ~PF_FAULT; - player->mo->renderflags &= ~RF_DONTDRAW; - player->mo->flags &= ~MF_NOCLIPTHING; - } - } + player->nocontrol--; } + // tic down the var normaly and remove the flag upon respawn so its guaranteed to be removed from the player + if (!player->nocontrol && player->respawn.state == RESPAWNST_DROP && (player->pflags & PF_FAULT)) + { + player->pflags &= ~PF_FAULT; + player->mo->renderflags &= ~RF_DONTDRAW; + player->mo->flags &= ~MF_NOCLIPTHING; + } + boolean deathcontrolled = (player->respawn.state != RESPAWNST_NONE && player->respawn.truedeath == true) || (player->pflags & PF_NOCONTEST) || (player->karmadelay); boolean powercontrolled = (player->hyudorotimer) || (player->growshrinktimer > 0);