]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make it so +use works in reverse too (clipped if pressed when noclip is preference)
authorSamual <samual@xonotic.org>
Tue, 16 Aug 2011 21:01:38 +0000 (17:01 -0400)
committerSamual <samual@xonotic.org>
Tue, 16 Aug 2011 21:01:38 +0000 (17:01 -0400)
qcsrc/server/cl_client.qc

index 8d096b21e702cecf55f2d0bba8e226be4bc95607..34534b74cd96334b3f5c0297edc09788896f8799 100644 (file)
@@ -2514,7 +2514,7 @@ void ObserverThink()
                                self.classname = "spectator";
                        }
                } else {
-                       prefered_movetype = ((self.cvar_cl_clippedspectating && !self.BUTTON_USE) ? MOVETYPE_FLY_WORLDONLY : MOVETYPE_NOCLIP);
+                       prefered_movetype = ((!self.BUTTON_USE ? self.cvar_cl_clippedspectating : !self.cvar_cl_clippedspectating) ? MOVETYPE_FLY_WORLDONLY : MOVETYPE_NOCLIP);
                        if (self.movetype != prefered_movetype)
                                self.movetype = prefered_movetype;
                }