about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-06-11 13:20:45 +0200
committeroy <Tom_Adams@web.de>2010-06-11 13:20:45 +0200
commit39853bcf897c351ed392fb2f08215b1499e86906 (patch)
tree8fa2438a9ece73c66ef9426004228ea322ef6cad /src/game
parentec334a9d68c71ceb0ae83e7f24e1781545887326 (diff)
downloadzcatch-39853bcf897c351ed392fb2f08215b1499e86906.tar.gz
zcatch-39853bcf897c351ed392fb2f08215b1499e86906.zip
fixed walk animation if x-position is negative. Closes #119
Diffstat (limited to 'src/game')
-rw-r--r--src/game/client/components/players.cpp2
1 files changed, 1 insertions, 1 deletions
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);