- 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:
parent
72a3257400
commit
f241d9773a
3 changed files with 50 additions and 36 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue