mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
- Fixed: Monsters spawned by the Boss Brain would not go after the player unless they were in sight.
SVN r3422 (trunk)
This commit is contained in:
parent
859512bf77
commit
d367b2941a
1 changed files with 7 additions and 2 deletions
|
@ -258,9 +258,14 @@ static void SpawnFly(AActor *self, const PClass *spawntype, FSoundID sound)
|
||||||
{
|
{
|
||||||
newmobj->CopyFriendliness (eye, false);
|
newmobj->CopyFriendliness (eye, false);
|
||||||
}
|
}
|
||||||
if (newmobj->SeeState != NULL && P_LookForPlayers (newmobj, true, NULL))
|
// Make it act as if it was around when the player first made noise
|
||||||
newmobj->SetState (newmobj->SeeState);
|
// (if the player has made noise).
|
||||||
|
newmobj->LastHeard = newmobj->Sector->SoundTarget;
|
||||||
|
|
||||||
|
if (newmobj->SeeState != NULL && P_LookForPlayers (newmobj, true, NULL))
|
||||||
|
{
|
||||||
|
newmobj->SetState (newmobj->SeeState);
|
||||||
|
}
|
||||||
if (!(newmobj->ObjectFlags & OF_EuthanizeMe))
|
if (!(newmobj->ObjectFlags & OF_EuthanizeMe))
|
||||||
{
|
{
|
||||||
// telefrag anything in this spot
|
// telefrag anything in this spot
|
||||||
|
|
Loading…
Reference in a new issue