]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make it so that if you press +use while spectating, it automatically enables noclip...
authorSamual <samual@xonotic.org>
Sun, 14 Aug 2011 22:45:56 +0000 (18:45 -0400)
committerSamual <samual@xonotic.org>
Sun, 14 Aug 2011 22:45:56 +0000 (18:45 -0400)
qcsrc/server/cl_client.qc

index cc4920ff797e4697a77514d163ee1f31621dbc61..66d2b05ab74541978ab8bbc0cc83209f8e511847 100644 (file)
@@ -2540,7 +2540,7 @@ void ObserverThink()
                                self.classname = "spectator";
                        }
                } else {
-                       prefered_movetype = (self.cvar_cl_clippedspectating ? MOVETYPE_SPECTATOR : MOVETYPE_NOCLIP);
+                       prefered_movetype = ((self.cvar_cl_clippedspectating && !self.BUTTON_USE) ? MOVETYPE_SPECTATOR : MOVETYPE_NOCLIP);
                        if (self.movetype != prefered_movetype)
                                self.movetype = prefered_movetype;
                }