]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
save/restore velocity, don't ask why
authorRudolf Polzer <divverent@alientrap.org>
Mon, 9 Jan 2012 12:27:30 +0000 (13:27 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 9 Jan 2012 12:27:30 +0000 (13:27 +0100)
qcsrc/csqcmodellib/cl_player.qc

index 2de165226c97dc0279f657e88c72439d12ef23b8..62cfddccf8758f593e553ff43e8fce49b6937589 100644 (file)
@@ -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
        {