From a1ea14c6275a11fa8450e714c4a531078fe0adc1 Mon Sep 17 00:00:00 2001 From: Bukz Date: Tue, 26 Apr 2011 09:02:43 +0000 Subject: [PATCH] slowmove bugfix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6355 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/physics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 87565c39..47a91094 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -375,7 +375,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) if(!(pl->onfloor || pl->onladder)) chspeed = 1.0f; const bool crouching = pl->crouching || pl->eyeheight < pl->maxeyeheight; - const float speed = curtime/(water ? 2000.0f : 1000.0f)*pl->maxspeed*(crouching ? chspeed : 1.0f)*(isfly && !slowmove ? 2.0f : 1.0f); + const float speed = curtime/(water ? 2000.0f : 1000.0f)*pl->maxspeed*(crouching ? chspeed : 1.0f)*(pl==player1 && isfly && !slowmove ? 2.0f : 1.0f); const float friction = water ? 20.0f : (pl->onfloor || isfly ? 6.0f : (pl->onladder ? 1.5f : 30.0f)); const float fpsfric = max(friction/curtime*20.0f, 1.0f);