From: terencehill Date: Fri, 20 Jan 2017 13:23:31 +0000 (+0100) Subject: Remove a useless tracebox_hits_trigger_hurt: dropped weapons are removed as soon... X-Git-Tag: xonotic-v0.8.2~282 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=9a6bd5753cc14904a4402c60a13bb0a684b2a840 Remove a useless tracebox_hits_trigger_hurt: dropped weapons are removed as soon as they fall on a trigger_hurt and can't be rated while they are in the air --- diff --git a/qcsrc/server/bot/default/havocbot/roles.qc b/qcsrc/server/bot/default/havocbot/roles.qc index 536c8b205e..87746ce571 100644 --- a/qcsrc/server/bot/default/havocbot/roles.qc +++ b/qcsrc/server/bot/default/havocbot/roles.qc @@ -36,8 +36,11 @@ void havocbot_goalrating_items(entity this, float ratingscale, vector org, float d = pointcontents(trace_endpos + '0 0 1'); if(d == CONTENT_WATER || d == CONTENT_SLIME || d == CONTENT_LAVA) continue; - if(tracebox_hits_trigger_hurt(it.origin, it.mins, it.maxs, trace_endpos)) - continue; + // this tracebox_hits_trigger_hurt call isn't needed: + // dropped weapons are removed as soon as they fall on a trigger_hurt + // and can't be rated while they are in the air + //if(tracebox_hits_trigger_hurt(it.origin, it.mins, it.maxs, trace_endpos)) + // continue; } else {