From 5603be3c5376ecb85fbb80b16c05bcd6fc874feb Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 9 Jan 2012 13:27:30 +0100 Subject: [PATCH] save/restore velocity, don't ask why --- qcsrc/csqcmodellib/cl_player.qc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 { -- 2.39.2