]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 2ececc6e1781cc26d2b98b92cdc4cdb39a60cdb4..4aa8fdf92cdb89886784437e1ba471ca5b8b0d49 100644 (file)
@@ -135,8 +135,9 @@ void CSQCPlayer_PredictTo(float endframe, float apply_error)
 
        csqcplayer_status = CSQCPLAYERSTATUS_PREDICTED;
 
 
        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;
        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;
        }
                print("the Weird code path got hit\n");
                return;
        }
+#endif
 
        if(csqcplayer_moveframe >= endframe)
        {
 
        if(csqcplayer_moveframe >= endframe)
        {