]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Correct a check for grabbing
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 6 Nov 2011 12:57:14 +0000 (14:57 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 6 Nov 2011 12:57:14 +0000 (14:57 +0200)
qcsrc/server/cheats.qc

index 8e455e942b8b8a9561d1a5d53a760373ad6296d7..497da308145fa45c390e1ec69bc7f2b9e42976bf 100644 (file)
@@ -719,9 +719,7 @@ float CheatFrame()
                                                        drag = TRUE;
                                                break;
                                        case 2: // owner and team mates can grab
-                                               if(trace_ent.owner == self || trace_ent.realowner == self)
-                                                       drag = TRUE;
-                                               if(!IsDifferentTeam(trace_ent.owner, self) || !IsDifferentTeam(trace_ent.realowner, self))
+                                               if(!IsDifferentTeam(trace_ent.owner, self) || !IsDifferentTeam(trace_ent.realowner, self) || trace_ent.team == self.team)
                                                        drag = TRUE;
                                                break;
                                        case 3: // anyone can grab