Fix player potentially getting stuck invisible while lightsnaking when not true death respawn

This commit is contained in:
toaster 2023-01-06 13:43:11 +00:00
parent 5e4a715394
commit 6d1dd5f089

View file

@ -4211,7 +4211,7 @@ void P_PlayerThink(player_t *player)
// Flash player after being hit. // Flash player after being hit.
if (!(player->hyudorotimer // SRB2kart - fixes Hyudoro not flashing when it should. if (!(player->hyudorotimer // SRB2kart - fixes Hyudoro not flashing when it should.
|| player->growshrinktimer > 0 // Grow doesn't flash either. || player->growshrinktimer > 0 // Grow doesn't flash either.
|| (player->respawn.state != RESPAWNST_NONE) // Respawn timer (for drop dash effect) || (player->respawn.state != RESPAWNST_NONE && player->respawn.truedeath == true) // Respawn timer (for drop dash effect)
|| (player->pflags & PF_NOCONTEST) // NO CONTEST explosion || (player->pflags & PF_NOCONTEST) // NO CONTEST explosion
|| ((gametyperules & GTR_BUMPERS) && player->bumpers <= 0 && player->karmadelay))) || ((gametyperules & GTR_BUMPERS) && player->bumpers <= 0 && player->karmadelay)))
{ {