]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Check for the sound hittype instead of the tuba when deciding whether to send damage...
authorMario <mario.mario@y7mail.com>
Sun, 19 Jul 2020 13:00:51 +0000 (23:00 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 19 Jul 2020 13:00:51 +0000 (23:00 +1000)
qcsrc/server/g_damage.qc

index 417275fc270fe82964b4afaa6c285371be8e0979..9eb3d86eb65834cd10dd2784657b260b56ed1ef4 100644 (file)
@@ -911,7 +911,7 @@ float RadiusDamageForSource (entity inflictor, vector inflictororigin, vector in
        total_damage_to_creatures = 0;
 
        if(deathtype != (WEP_HOOK.m_id | HITTYPE_SECONDARY | HITTYPE_BOUNCE)) // only send gravity bomb damage once
-               if(DEATH_WEAPONOF(deathtype) != WEP_TUBA) // do not send tuba damage (bandwidth hog)
+               if(!(deathtype & HITTYPE_SOUND)) // do not send radial sound damage (bandwidth hog)
                {
                        force = inflictorvelocity;
                        if(force == '0 0 0')