Core/Movement: Prevent pet animation stuttering during movement (#1142)

* fix vanity pet distance and angle
* fix vanity pet distance to player
* put size calculation for normal pets into the if-statement for vanity pets
* change pet speed algorithm
* change distance calculation
* another change to the distance calculation; differentiate between player running or flying
This commit is contained in:
Stoabrogga
2019-01-08 07:36:25 +01:00
committed by Viste(Кирилл)
parent f852a87f9c
commit 3d416de893
3 changed files with 58 additions and 3 deletions

View File

@@ -2561,6 +2561,7 @@ class Unit : public WorldObject
bool m_duringRemoveFromWorld; // lock made to not add stuff after begining removing from world
uint32 _oldFactionId; ///< faction before charm
bool m_petCatchUp;
};
namespace Trinity