]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix damage for enemies near the explosion
authorSamual Lenks <samual@xonotic.org>
Mon, 31 Mar 2014 23:00:46 +0000 (19:00 -0400)
committerSamual Lenks <samual@xonotic.org>
Mon, 31 Mar 2014 23:00:46 +0000 (19:00 -0400)
qcsrc/common/weapons/w_devastator.qc

index 90df8bfd9da49712bcb5d8711f9168bc1cc0c8a1..3db10e0cd2e2e56b8f77d0e7953d8578010eef07 100644 (file)
@@ -161,21 +161,18 @@ void W_Devastator_DoRemoteExplode(void)
                head = head.chain;
        }
 
-       if(!handled_as_rocketjump)
-       {
-               RadiusDamage(
-                       self,
-                       self.realowner,
-                       WEP_CVAR(devastator, remote_damage),
-                       WEP_CVAR(devastator, remote_edgedamage),
-                       WEP_CVAR(devastator, remote_radius),
-                       self,
-                       world,
-                       WEP_CVAR(devastator, remote_force),
-                       self.projectiledeathtype | HITTYPE_BOUNCE,
-                       world
-               );
-       }
+       RadiusDamage(
+               self,
+               self.realowner,
+               WEP_CVAR(devastator, remote_damage),
+               WEP_CVAR(devastator, remote_edgedamage),
+               WEP_CVAR(devastator, remote_radius),
+               (handled_as_rocketjump ? head : world),
+               world,
+               WEP_CVAR(devastator, remote_force),
+               self.projectiledeathtype | HITTYPE_BOUNCE,
+               world
+       );
 
        if(self.realowner.weapon == WEP_DEVASTATOR)
        {