mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-28 11:32:33 +00:00
Small change to gmmove to always force an update
This commit is contained in:
parent
26ed51f32a
commit
182b7e9843
13
zone/mob.cpp
13
zone/mob.cpp
@ -1663,15 +1663,10 @@ void Mob::ShowBuffList(Client* client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Mob::GMMove(float x, float y, float z, float heading, bool SendUpdate) {
|
void Mob::GMMove(float x, float y, float z, float heading, bool SendUpdate) {
|
||||||
if (IsCorpse() || (IsClient() && !IsAIControlled())) {
|
m_Position.x = x;
|
||||||
m_Position.x = x;
|
m_Position.y = y;
|
||||||
m_Position.y = y;
|
m_Position.z = z;
|
||||||
m_Position.z = z;
|
mMovementManager->SendCommandToClients(this, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeAny);
|
||||||
mMovementManager->SendCommandToClients(this, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeAny);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Teleport(glm::vec4(x, y, z, heading));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IsNPC()) {
|
if (IsNPC()) {
|
||||||
CastToNPC()->SaveGuardSpot(glm::vec4(x, y, z, heading));
|
CastToNPC()->SaveGuardSpot(glm::vec4(x, y, z, heading));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user