From: Samual Date: Sun, 14 Aug 2011 22:45:56 +0000 (-0400) Subject: Make it so that if you press +use while spectating, it automatically enables noclip... X-Git-Tag: xonotic-v0.5.0~109^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c83b6be3f2e4535b554602f30f3f5fb1282c54eb;p=xonotic%2Fxonotic-data.pk3dir.git Make it so that if you press +use while spectating, it automatically enables noclip movetype --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index cc4920ff7..66d2b05ab 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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; }