kill the Weird code path
authorRudolf Polzer <divverent@xonotic.org>
Sun, 19 Feb 2012 13:45:34 +0000 (14:45 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 19 Feb 2012 13:45:34 +0000 (14:45 +0100)
qcsrc/csqcmodellib/cl_player.qc

index 2ececc6..4aa8fdf 100644 (file)
@@ -135,8 +135,9 @@ void CSQCPlayer_PredictTo(float endframe, float apply_error)
 
        csqcplayer_status = CSQCPLAYERSTATUS_PREDICTED;
 
-       // FIXME do we really NEED this? dead players have servercommandframe
-       // == 0 and thus won't predict
+#if 0
+       // we don't need this
+       // darkplaces makes servercommandframe == 0 in these cases anyway
        if (getstatf(STAT_HEALTH) <= 0)
        {
                csqcplayer_moveframe = clientcommandframe;
@@ -144,6 +145,7 @@ void CSQCPlayer_PredictTo(float endframe, float apply_error)
                print("the Weird code path got hit\n");
                return;
        }
+#endif
 
        if(csqcplayer_moveframe >= endframe)
        {