mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-31 18:42:27 +00:00
Some checks to cut down on position sends by about 30%, still need to optimize movement sends
This commit is contained in:
parent
d0685556e8
commit
94bce44295
@ -277,7 +277,10 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
mgr->SendCommandToClients(m, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeCloseMedium);
|
if (m->IsMoving()) {
|
||||||
|
m->SetMoving(false);
|
||||||
|
mgr->SendCommandToClients(m, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeCloseMedium);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -467,8 +470,11 @@ void MobMovementManager::StopNavigation(Mob *who) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
who->TryFixZ();
|
if (who->IsMoving()) {
|
||||||
SendCommandToClients(who, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeCloseMedium);
|
who->TryFixZ();
|
||||||
|
who->SetMoving(false);
|
||||||
|
SendCommandToClients(who, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeCloseMedium);
|
||||||
|
}
|
||||||
ent.second.Commands.clear();
|
ent.second.Commands.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user