mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Fix chamaleon offset
This commit is contained in:
parent
beb04d8d8e
commit
2525940e49
@ -658,6 +658,8 @@ Point Creature::getDisplacement()
|
|||||||
{
|
{
|
||||||
if(m_outfit.getCategory() == ThingCategoryEffect)
|
if(m_outfit.getCategory() == ThingCategoryEffect)
|
||||||
return Point(8, 8);
|
return Point(8, 8);
|
||||||
|
else if(m_outfit.getCategory() == ThingCategoryItem)
|
||||||
|
return Point(0, 0);
|
||||||
return Thing::getDisplacement();
|
return Thing::getDisplacement();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -665,6 +667,8 @@ int Creature::getDisplacementX()
|
|||||||
{
|
{
|
||||||
if(m_outfit.getCategory() == ThingCategoryEffect)
|
if(m_outfit.getCategory() == ThingCategoryEffect)
|
||||||
return 8;
|
return 8;
|
||||||
|
else if(m_outfit.getCategory() == ThingCategoryItem)
|
||||||
|
return 0;
|
||||||
return Thing::getDisplacementX();
|
return Thing::getDisplacementX();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -672,6 +676,8 @@ int Creature::getDisplacementY()
|
|||||||
{
|
{
|
||||||
if(m_outfit.getCategory() == ThingCategoryEffect)
|
if(m_outfit.getCategory() == ThingCategoryEffect)
|
||||||
return 8;
|
return 8;
|
||||||
|
else if(m_outfit.getCategory() == ThingCategoryItem)
|
||||||
|
return 0;
|
||||||
return Thing::getDisplacementY();
|
return Thing::getDisplacementY();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user