- added a sight check to A_Blast for cross-portal effects.

This commit is contained in:
Christoph Oelckers 2016-02-29 01:36:39 +01:00
parent 0822485593
commit fadc7de636
1 changed files with 5 additions and 0 deletions

View File

@ -151,6 +151,11 @@ DEFINE_ACTION_FUNCTION_PARAMS (AActor, A_Blast)
{ // Out of range
continue;
}
if (mo->Sector->PortalGroup != self->Sector->PortalGroup && !P_CheckSight(self, mo))
{
// in another region and cannot be seen.
continue;
}
BlastActor (mo, strength, speed, self, blasteffect, !!(blastflags & BF_NOIMPACTDAMAGE));
}
return 0;