- fixed: Setting 'noallies' on the level cleared the player's friendly flag.

The check was for mobj->player, which at this point wasn't set yet so the check failed.
This commit is contained in:
Christoph Oelckers 2020-04-13 10:54:40 +02:00
parent 4b5c74f856
commit 6722b64ac0

View file

@ -4537,7 +4537,7 @@ void ConstructActor(AActor *actor, const DVector3 &pos, bool SpawningMapThing)
return;
}
}
if (Level->flags & LEVEL_NOALLIES && !actor->player)
if (Level->flags & LEVEL_NOALLIES && !actor->IsKindOf(NAME_PlayerPawn))
{
actor->flags &= ~MF_FRIENDLY;
}