mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
small fix to compile on ARM
This commit is contained in:
@@ -211,7 +211,7 @@ void Creature::updateWalk()
|
|||||||
const ThingType& type = getType();
|
const ThingType& type = getType();
|
||||||
if(m_walking) {
|
if(m_walking) {
|
||||||
int elapsedTicks = g_platform.getTicks() - m_walkStartTicks;
|
int elapsedTicks = g_platform.getTicks() - m_walkStartTicks;
|
||||||
int totalPixelsWalked = std::min((int)std::round(elapsedTicks / m_walkTimePerPixel), 32);
|
int totalPixelsWalked = std::min((int)round(elapsedTicks / m_walkTimePerPixel), 32);
|
||||||
|
|
||||||
if(m_inverseWalking) {
|
if(m_inverseWalking) {
|
||||||
if(m_direction == Otc::North || m_direction == Otc::NorthEast || m_direction == Otc::NorthWest)
|
if(m_direction == Otc::North || m_direction == Otc::NorthEast || m_direction == Otc::NorthWest)
|
||||||
|
Reference in New Issue
Block a user