From f9ebb2dd6b1ccee00e76ac467e595150298acc3f Mon Sep 17 00:00:00 2001 From: GreYFoXGTi Date: Mon, 18 Oct 2010 10:48:16 +0200 Subject: [PATCH] lol --- src/game/server/entities/character.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index bbf9ce518..5c34d2ff8 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -881,8 +881,8 @@ void CCharacter::HandleTiles(int Index) if(MaxSpeed && Direction.x && (TempVel.x > MaxVel.x && MaxVel.x > 0 || TempVel.x < MaxVel.x && MaxVel.x < 0)) TempVel.x = MaxVel.x + Direction.x; if(MaxSpeed && Direction.y && (TempVel.y > MaxVel.y && MaxVel.y > 0 || TempVel.y < MaxVel.y && MaxVel.y < 0)) - TempVel.y = MaxVel.y; - m_Core.m_Vel = TempVel + Direction.y; + TempVel.y = MaxVel.y + Direction.y; + m_Core.m_Vel = TempVel; //dbg_msg("speedup tile end","(Direction*Force) %f %f m_Core.m_Vel%f %f",(Direction*Force).x,(Direction*Force).y,m_Core.m_Vel.x,m_Core.m_Vel.y); //dbg_msg("speedup tile end","Direction %f %f, Force %d, Max Speed %d", (Direction).x,(Direction).y, Force, MaxSpeed); }