mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00
Fix bug when drawing mounts while walking
This commit is contained in:
parent
fa317c534d
commit
3557879361
@ -877,6 +877,12 @@ int Creature::getDisplacementX()
|
||||
return 8;
|
||||
else if(m_outfit.getCategory() == ThingCategoryItem)
|
||||
return 0;
|
||||
|
||||
if(m_outfit.getMount() != 0) {
|
||||
auto datType = g_things.rawGetThingType(m_outfit.getMount(), ThingCategoryCreature);
|
||||
return datType->getDisplacementX();
|
||||
}
|
||||
|
||||
return Thing::getDisplacementX();
|
||||
}
|
||||
|
||||
@ -886,6 +892,12 @@ int Creature::getDisplacementY()
|
||||
return 8;
|
||||
else if(m_outfit.getCategory() == ThingCategoryItem)
|
||||
return 0;
|
||||
|
||||
if(m_outfit.getMount() != 0) {
|
||||
auto datType = g_things.rawGetThingType(m_outfit.getMount(), ThingCategoryCreature);
|
||||
return datType->getDisplacementY();
|
||||
}
|
||||
|
||||
return Thing::getDisplacementY();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user