From: Mario Date: Wed, 6 Jan 2016 13:42:02 +0000 (+1000) Subject: Don't call EXACTTRIGGER_TOUCH when it's not needed (possible fix for heavy packet... X-Git-Tag: xonotic-v0.8.2~1271 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=adb8a867b8ae9159bff53f44ff812bb155ac7592;p=xonotic%2Fxonotic-data.pk3dir.git Don't call EXACTTRIGGER_TOUCH when it's not needed (possible fix for heavy packet loss when touching item triggers) --- diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 72bfafd12..aca12292f 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -1421,7 +1421,7 @@ void target_items_use() {SELFPARAM(); if(activator.classname == "droppedweapon") { - EXACTTRIGGER_TOUCH; + //EXACTTRIGGER_TOUCH; remove(activator); return; } @@ -1430,7 +1430,7 @@ void target_items_use() return; if(IS_DEAD(activator)) return; - EXACTTRIGGER_TOUCH; + //EXACTTRIGGER_TOUCH; FOREACH_ENTITY_ENT(enemy, activator, {