From: Rudolf Polzer Date: Sun, 19 Feb 2012 13:45:34 +0000 (+0100) Subject: kill the Weird code path X-Git-Tag: xonotic-v0.6.0~66^2~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a17c69881645a03c71e43a70b8844ce853c6e825;p=xonotic%2Fxonotic-data.pk3dir.git kill the Weird code path --- diff --git a/qcsrc/csqcmodellib/cl_player.qc b/qcsrc/csqcmodellib/cl_player.qc index 2ececc6e1..4aa8fdf92 100644 --- a/qcsrc/csqcmodellib/cl_player.qc +++ b/qcsrc/csqcmodellib/cl_player.qc @@ -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) {