]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove a useless tracebox_hits_trigger_hurt: dropped weapons are removed as soon...
authorterencehill <piuntn@gmail.com>
Fri, 20 Jan 2017 13:23:31 +0000 (14:23 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 20 Jan 2017 13:23:31 +0000 (14:23 +0100)
qcsrc/server/bot/default/havocbot/roles.qc

index 536c8b205e8f5911da17a3588c14afbd352f3146..87746ce571a24fbad9f8453eee4912a6bbc79820 100644 (file)
@@ -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
                {