Selective commit of secrets somewhat broken pr

This commit is contained in:
KimLS
2018-11-18 20:29:21 -08:00
parent e8dffa1087
commit b772518901
7 changed files with 60 additions and 22 deletions
+9 -1
View File
@@ -1658,7 +1658,15 @@ void Mob::ShowBuffList(Client* client) {
}
void Mob::GMMove(float x, float y, float z, float heading, bool SendUpdate) {
Teleport(glm::vec4(x, y, z, heading));
if (IsCorpse()) {
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, heading));
}
if (IsNPC()) {
CastToNPC()->SaveGuardSpot(glm::vec4(x, y, z, heading));