mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 08:21:28 +00:00
Merge pull request #829 from noudess/master
Fix Spin() to use old mechanism so the npc actually spins again.
This commit is contained in:
commit
20de6acfea
@ -100,6 +100,7 @@ Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org)
|
|||||||
#include "bot.h"
|
#include "bot.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "mob_movement_manager.h"
|
||||||
|
|
||||||
|
|
||||||
extern Zone* zone;
|
extern Zone* zone;
|
||||||
@ -4818,7 +4819,22 @@ void Mob::Spin() {
|
|||||||
safe_delete(outapp);
|
safe_delete(outapp);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
GMMove(GetX(), GetY(), GetZ(), GetHeading()+5);
|
float x,y,z,h;
|
||||||
|
|
||||||
|
x=GetX();
|
||||||
|
y=GetY();
|
||||||
|
z=GetZ();
|
||||||
|
h=GetHeading()+5;
|
||||||
|
|
||||||
|
if (IsCorpse() || (IsClient() && !IsAIControlled())) {
|
||||||
|
m_Position.x = x;
|
||||||
|
m_Position.y = y;
|
||||||
|
m_Position.z = z;
|
||||||
|
mMovementManager->SendCommandToClients(this, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeAny);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Teleport(glm::vec4(x, y, z, h));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user