mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- 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:
parent
4b5c74f856
commit
6722b64ac0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue