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: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=24b4d446a9d35514f9aa63720a1b57eb78789747;hp=19c09c8cfc6a4cb71c07e63bf739b7720ec6b0a0 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 417275fc27..9eb3d86eb6 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')