From: Mario Date: Sun, 19 Jul 2020 13:00:51 +0000 (+1000) Subject: Check for the sound hittype instead of the tuba when deciding whether to send damage... X-Git-Tag: xonotic-v0.8.5~846 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=24b4d446a9d35514f9aa63720a1b57eb78789747;p=xonotic%2Fxonotic-data.pk3dir.git Check for the sound hittype instead of the tuba when deciding whether to send damage info to the client --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 417275fc2..9eb3d86eb 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -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')