- 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:
Randy Heit 2012-03-10 02:17:49 +00:00
parent 859512bf77
commit d367b2941a
1 changed files with 7 additions and 2 deletions

View File

@ -258,9 +258,14 @@ static void SpawnFly(AActor *self, const PClass *spawntype, FSoundID sound)
{
newmobj->CopyFriendliness (eye, false);
}
if (newmobj->SeeState != NULL && P_LookForPlayers (newmobj, true, NULL))
newmobj->SetState (newmobj->SeeState);
// Make it act as if it was around when the player first made noise
// (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))
{
// telefrag anything in this spot