mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
Fix for bot out-of-combat movement animation glitches
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user