From 39853bcf897c351ed392fb2f08215b1499e86906 Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 11 Jun 2010 13:20:45 +0200 Subject: fixed walk animation if x-position is negative. Closes #119 --- src/game/client/components/players.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/client/components/players.cpp') diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 8ad7b0cb..ad7b3bcd 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -319,7 +319,7 @@ void CPlayers::RenderPlayer( bool WantOtherDir = (Player.m_Direction == -1 && Vel.x > 0) || (Player.m_Direction == 1 && Vel.x < 0); // evaluate animation - float WalkTime = fmod(Position.x, 100.0f)/100.0f; + float WalkTime = fmod(absolute(Position.x), 100.0f)/100.0f; CAnimState State; State.Set(&g_pData->m_aAnimations[ANIM_BASE], 0); -- cgit 1.4.1