From f08238685a7cddc0363dc446866ce20ea2575f38 Mon Sep 17 00:00:00 2001
From: divverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Wed, 19 May 2010 06:10:33 +0000
Subject: [PATCH] fix stairsmoothing annoyance through warpzones

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10202 d7cf8633-e32d-0410-b094-e92efae38249
---
 view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/view.c b/view.c
index dafe981d..15b3f597 100644
--- 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
 			{
-- 
2.39.5