]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix stairsmoothing annoyance through warpzones
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 May 2010 06:10:33 +0000 (06:10 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 21 May 2010 21:11:02 +0000 (23:11 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10202 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f08238685a7cddc0363dc446866ce20ea2575f38

view.c

diff --git a/view.c b/view.c
index dafe981d96d5d3df2e172a4f6482709275fe1654..15b3f5978277441a8c940e4547f9bbb7156ca13c 100644 (file)
--- a/view.c
+++ b/view.c
@@ -468,7 +468,7 @@ void V_CalcRefdef (void)
                else
                {
                        // smooth stair stepping, but only if onground and enabled
-                       if (!cl.onground || cl_stairsmoothspeed.value <= 0)
+                       if (!cl.onground || cl_stairsmoothspeed.value <= 0 || !ent->persistent.trail_allowed) // FIXME use a better way to detect teleport/warp
                                cl.stairsmoothz = vieworg[2];
                        else
                        {