]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make movetype_spectator behave the same way movetype_fly does with free movement
authorSamual <samual@xonotic.org>
Sun, 14 Aug 2011 23:27:12 +0000 (19:27 -0400)
committerSamual <samual@xonotic.org>
Sun, 14 Aug 2011 23:27:12 +0000 (19:27 -0400)
qcsrc/server/cl_physics.qc

index 4af6dac1c6d1839189750d0f666f92bd15844c90..5f82d61e5bf8b374a1461c707e0864304e386204 100644 (file)
@@ -963,7 +963,7 @@ void SV_PlayerPhysics()
        {
                RaceCarPhysics();
        }
-       else if (self.movetype == MOVETYPE_NOCLIP || self.movetype == MOVETYPE_FLY)
+       else if (self.movetype == MOVETYPE_NOCLIP || self.movetype == MOVETYPE_FLY || self.movetype == MOVETYPE_SPECTATOR)
        {
                // noclipping or flying
                self.flags &~= FL_ONGROUND;