From fadc7de63643fb0d1218b088720376aee5ac3309 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 29 Feb 2016 01:36:39 +0100 Subject: [PATCH] - added a sight check to A_Blast for cross-portal effects. --- src/g_hexen/a_blastradius.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/g_hexen/a_blastradius.cpp b/src/g_hexen/a_blastradius.cpp index c832115859..bfaec55d0b 100644 --- a/src/g_hexen/a_blastradius.cpp +++ b/src/g_hexen/a_blastradius.cpp @@ -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;