Make sure that B_CheckRespawn can be called even if Tails is dead

This commit is contained in:
Monster Iestyn 2019-02-26 21:14:22 +00:00
parent e36193e44e
commit a25f4b8194

View file

@ -8688,8 +8688,11 @@ void P_PlayerThink(player_t *player)
if (player->bot)
{
if (player->playerstate == PST_LIVE && B_CheckRespawn(player))
if (player->playerstate == PST_LIVE || player->playerstate == PST_DEAD)
{
if (B_CheckRespawn(player))
player->playerstate = PST_REBORN;
}
if (player->playerstate == PST_REBORN)
return;
}