From 96bb28e806f2949edff25db10e5d955c993e8712 Mon Sep 17 00:00:00 2001 From: Joao Pasqualini Costa Date: Sat, 17 Aug 2013 22:19:24 -0300 Subject: [PATCH] Fix Mount frame issue This will fix mount for all protocols --- src/client/creature.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/creature.cpp b/src/client/creature.cpp index 5ff87453..ffd29814 100644 --- a/src/client/creature.cpp +++ b/src/client/creature.cpp @@ -458,6 +458,11 @@ void Creature::updateWalkAnimation(int totalPixelsWalked) int footAnimPhases = getAnimationPhases() - 1; int footDelay = getStepDuration(true) / 3; + // Since mount is a different outfit we need to get the mount animation phases + if(m_outfit.getMount() != 0) { + ThingType *type = g_things.rawGetThingType(m_outfit.getMount(), m_outfit.getCategory()); + footAnimPhases = type->getAnimationPhases() - 1; + } if(footAnimPhases == 0) m_walkAnimationPhase = 0; else if(m_footStepDrawn && m_footTimer.ticksElapsed() >= footDelay && totalPixelsWalked < 32) {