Fix issues with NPC's ghosting who path for long distances, this should wrap up the small remainder of ghosting edge cases

This commit is contained in:
Akkadius
2017-11-21 21:25:20 -06:00
parent 52d31a6846
commit b03e9af597
3 changed files with 88 additions and 74 deletions
+11 -2
View File
@@ -269,8 +269,17 @@ bool Client::Process() {
}
}
if (force_spawn_updates && mob != this && distance <= client_update_range)
mob->SendPositionUpdateToClient(this);
if (force_spawn_updates && mob != this) {
if (mob->is_distance_roamer) {
Log(Logs::General, Logs::Debug, "Updating distance roamer %s", mob->GetCleanName());
mob->SendPositionUpdateToClient(this);
continue;
}
if (distance <= client_update_range)
mob->SendPositionUpdateToClient(this);
}
}
}