mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Fix remainder of ghosting
This commit is contained in:
parent
0d76e224fd
commit
461931f5bd
@ -4515,12 +4515,17 @@ void Client::Handle_OP_ClientUpdate(const EQApplicationPacket *app) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
float distance_from_client_to_ignore = zone->GetNpcPositionUpdateDistance();
|
int animation_speed = 0;
|
||||||
if (entity->IsMoving() && CalculateDistance(entity->GetX(), entity->GetY(), entity->GetZ()) <= distance_from_client_to_ignore) {
|
if (entity->IsMoving()) {
|
||||||
continue;
|
if (entity->IsRunning()) {
|
||||||
|
animation_speed = (entity->IsFeared() ? entity->GetFearSpeed() : entity->GetRunspeed());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
animation_speed = entity->GetWalkspeed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mob_movement_manager.SendCommandToClients(entity, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeAny, this);
|
mob_movement_manager.SendCommandToClients(entity, 0.0, 0.0, 0.0, 0.0, animation_speed, ClientRangeAny, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetLastPositionBeforeBulkUpdate(GetPosition());
|
SetLastPositionBeforeBulkUpdate(GetPosition());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user