mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49:21 +02:00
walk back?
This commit is contained in:
parent
6206eeb562
commit
fe9591ca8d
@ -113,7 +113,7 @@ void Creature::draw(int x, int y)
|
||||
if(m_walking && attributes.animcount > 1) {
|
||||
|
||||
if(g_platform.getTicks() - m_lastTicks >= m_walkTimePerPixel) {
|
||||
int pixelsWalked = (g_platform.getTicks() - m_lastTicks) / m_walkTimePerPixel;
|
||||
int pixelsWalked = std::floor((g_platform.getTicks() - m_lastTicks) / m_walkTimePerPixel);
|
||||
int remainingTime = (g_platform.getTicks() - m_lastTicks) % (int)m_walkTimePerPixel;
|
||||
|
||||
if(m_direction == Otc::North)
|
||||
|
Loading…
x
Reference in New Issue
Block a user