Don't un-drag an object if it goes out of range. Only use range to decide whether...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 24 Oct 2011 22:55:07 +0000 (01:55 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 24 Oct 2011 22:55:07 +0000 (01:55 +0300)
qcsrc/server/cheats.qc

index e35adab..6995b41 100644 (file)
@@ -717,7 +717,7 @@ float Drag(entity e, float dist)
 
        if(Drag_IsDragging(self))
        {
-               if(self.BUTTON_DRAG && inrange)
+               if(self.BUTTON_DRAG)
                {
                        if(self.impulse == 10 || self.impulse == 15 || self.impulse == 18)
                        {
@@ -751,7 +751,6 @@ float Drag(entity e, float dist)
                if(Drag_CanDrag(self))
                        if(self.BUTTON_DRAG && inrange)
                        {
-                               crosshair_trace_plusvisibletriggers(self);
                                if(e)
                                        if(Drag_IsDraggable(e))
                                        {