From fe9591ca8d63d4e37434994f61cb6776a2e7d891 Mon Sep 17 00:00:00 2001 From: Henrique Date: Sun, 28 Aug 2011 23:45:52 -0300 Subject: [PATCH] walk back? --- src/otclient/core/creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/otclient/core/creature.cpp b/src/otclient/core/creature.cpp index 620766e0..4ccfc37e 100644 --- a/src/otclient/core/creature.cpp +++ b/src/otclient/core/creature.cpp @@ -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)