Merge branch 'tails-bot-dead-forever-fix' into 'next'

Tails bot dead forever fix

See merge request STJr/SRB2!461
This commit is contained in:
Monster Iestyn 2019-02-27 12:39:56 -05:00
commit d44cb36d53

View file

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