]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Handle client frames same as server
authorMario <zacjardine@y7mail.com>
Fri, 12 Dec 2014 05:23:52 +0000 (16:23 +1100)
committerMario <zacjardine@y7mail.com>
Fri, 12 Dec 2014 05:23:52 +0000 (16:23 +1100)
qcsrc/common/physics.qc

index 20f1e8c0c3063dc803a093c18b6057c442d4d148..2aca4c7bb47845590a83036e5e5f68d771df2a13 100644 (file)
@@ -1772,29 +1772,11 @@ void PM_Main()
        self.lastclassname = self.classname;
 }
 
-void CSQC_ClientMovement_PlayerMove_Frame()
-{
-       // if a move is more than 50ms, do it as two moves (matching qwsv)
-       //Con_Printf("%i ", self.cmd.msec);
-       if (PHYS_INPUT_TIMELENGTH > 0.0005)
-       {
-               if (PHYS_INPUT_TIMELENGTH > 0.05)
-               {
-                       PHYS_INPUT_TIMELENGTH /= 2;
-                       PM_Main();
-               }
-               PM_Main();
-       }
-       else
-               // we REALLY need this handling to happen, even if the move is not executed
-               if (!(PHYS_INPUT_BUTTON_JUMP(self))) // !jump
-                       UNSET_JUMP_HELD(self); // canjump = true
-}
-
 #ifdef SVQC
-// Entry point
 void SV_PlayerPhysics(void)
+#elif defined(CSQC)
+void CSQC_ClientMovement_PlayerMove_Frame(void)
+#endif
 {
        PM_Main();
-}
-#endif
\ No newline at end of file
+}
\ No newline at end of file