Revert "- fixed: player spawn code should now always use defaults for the currently selected player class, not current flags"

This reverts commit 8dda7c02c9.
This commit is contained in:
Rachael Alexanderson 2020-04-15 07:02:58 -04:00
parent 8dda7c02c9
commit c1421b70cf

View file

@ -1707,18 +1707,7 @@ void FLevelLocals::DoReborn (int playernum, bool freshbot)
} }
else else
{ {
bool isUnfriendly; bool isUnfriendly = players[playernum].mo && !(players[playernum].mo->flags & MF_FRIENDLY);
auto p = players[playernum].mo->player;
if (p->cls == NULL)
{
// this shouldn't ever happen! It's just a fall-through in case it does...
isUnfriendly = players[playernum].mo && !(players[playernum].mo->GetDefault()->flags & MF_FRIENDLY);
}
else
{
isUnfriendly = !(GetDefaultByType(p->cls)->flags & MF_FRIENDLY);
}
// respawn at the start // respawn at the start
// first disassociate the corpse // first disassociate the corpse