]> git.rm.cloudns.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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 May 2010 06:10:33 +0000 (06:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10202 d7cf8633-e32d-0410-b094-e92efae38249

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
                        {