From: Rudolf Polzer Date: Mon, 9 Jan 2012 12:27:30 +0000 (+0100) Subject: save/restore velocity, don't ask why X-Git-Tag: xonotic-v0.6.0~188^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5603be3c5376ecb85fbb80b16c05bcd6fc874feb;p=xonotic%2Fxonotic-data.pk3dir.git save/restore velocity, don't ask why --- diff --git a/qcsrc/csqcmodellib/cl_player.qc b/qcsrc/csqcmodellib/cl_player.qc index 2de165226..62cfddccf 100644 --- a/qcsrc/csqcmodellib/cl_player.qc +++ b/qcsrc/csqcmodellib/cl_player.qc @@ -257,7 +257,15 @@ void CSQCPlayer_SetCamera() if(intermission) refdefflags |= REFDEFFLAG_INTERMISSION; + // FIXME this is a stupid hack and is only there because + // bobfall got unreliable otherwise (it restores the old + // behaviour); need to find out why + vector vsave = view.velocity; + view.velocity = v0; + V_CalcRefdef(view, refdefflags); + + view.velocity = vsave; } else {