small fix to compile on ARM
This commit is contained in:
parent
9ca1637677
commit
828abab6d1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue