Fix for bot out-of-combat movement animation glitches

This commit is contained in:
Uleat
2019-01-27 08:09:54 -05:00
parent 3c0bd2bf5d
commit 5b371ad054
3 changed files with 27 additions and 2 deletions
+23
View File
@@ -1063,3 +1063,26 @@ void NPC::RestoreGuardSpotCharm()
{
m_GuardPoint = m_GuardPointSaved;
}
/******************
* Bot-specific overloads to make them play nice with the new movement system
*/
#ifdef BOTS
#include "bot.h"
void Bot::WalkTo(float x, float y, float z)
{
if (IsSitting())
Stand();
Mob::WalkTo(x, y, z);
}
void Bot::RunTo(float x, float y, float z)
{
if (IsSitting())
Stand();
Mob::RunTo(x, y, z);
}
#endif