]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix local defined with the name of a global
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 6 Nov 2011 15:50:44 +0000 (17:50 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 6 Nov 2011 15:50:44 +0000 (17:50 +0200)
qcsrc/server/cheats.qc

index 85dab178725fc72875ab3cca20fe544eb089acbf..d2a21edc1002e0f27202b788ff2eea689e373bd5 100644 (file)
@@ -740,11 +740,11 @@ float CheatFrame()
 
 // ENTITY DRAGGING
 
-float Drag(entity e, float grab)
+float Drag(entity e, float pick)
 {
        // returns TRUE when an entity has been picked up
-       // If grab is TRUE, the object can also be picked up if it's not being held already
-       // If grab is FALSE, only keep dragging the object if it's already being held
+       // If pick is TRUE, the object can also be picked up if it's not being held already
+       // If pick is FALSE, only keep dragging the object if it's already being held
 
        if(Drag_IsDragging(self))
        {
@@ -780,7 +780,7 @@ float Drag(entity e, float grab)
        else
        {
                if(Drag_CanDrag(self))
-                       if(self.BUTTON_DRAG && grab)
+                       if(self.BUTTON_DRAG && pick)
                        {
                                if(e)
                                        if(Drag_IsDraggable(e))