mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed walk animation if x-position is negative. Closes #119
This commit is contained in:
parent
ec334a9d68
commit
39853bcf89
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue