From aba216d1ddf6799ff9f3a3bf6bbe6aadfc6de40b Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 24 Jun 2013 02:54:57 +0200 Subject: [PATCH] Fix little problem added in 54d609a8b507dd. Respecting maxspeed lerp is not a good idea, there are nodes that set this (normalpass, energypass, just to name two). This causes way too fast swimming while the maxspeed lerp is > 1. --- Aquaria/Avatar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquaria/Avatar.cpp b/Aquaria/Avatar.cpp index f5c8885..941a4bc 100644 --- a/Aquaria/Avatar.cpp +++ b/Aquaria/Avatar.cpp @@ -4913,7 +4913,7 @@ void Avatar::clampVelocity() setMaxSpeed(currentMaxSpeed * useSpeedMult * dsq->continuity.speedMult2); - vel.capLength2D(getMaxSpeed() * maxSpeedLerp.x); + vel.capLength2D(getMaxSpeed() /* * maxSpeedLerp.x*/); } void Avatar::activateAura(AuraType aura)