- made P_NoiseAlert non-recursive to avoid stack overflow problems in large open-area maps with a high sector count.

This commit is contained in:
Christoph Oelckers 2016-05-25 11:30:11 +02:00
commit f241d9773a
3 changed files with 50 additions and 36 deletions

View file

@ -1226,8 +1226,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Explode)
P_CheckSplash(self, distance);
if (alert && self->target != NULL && self->target->player != NULL)
{
validcount++;
P_RecursiveSound (self->Sector, self->target, false, 0);
P_NoiseAlert(self->target, self);
}
return 0;
}