mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-28 09:22:17 +00:00
Change eqstream interface to get rid of some stuff as well as flesh out a few more options plus some rule and performance changes
This commit is contained in:
1 parent
67b228a91c
commit
7977949ae9
21 files changed
+227
-181
No files matched your search
@@ -671,24 +671,27 @@ void MobMovementManager::SendCommandToClients(Mob *m, float dx, float dy, float
|
||||
}
|
||||
}
|
||||
else {
|
||||
float short_range = RuleR(Pathing, ShortMovementUpdateRange);
|
||||
float long_range = zone->GetMaxMovementUpdateRange();
|
||||
|
||||
for (auto &c : _impl->Clients) {
|
||||
float dist = c->CalculateDistance(m->GetX(), m->GetY(), m->GetZ());
|
||||
|
||||
bool match = false;
|
||||
if (range & ClientRangeClose) {
|
||||
if (dist < 250.0f) {
|
||||
if (dist < short_range) {
|
||||
match = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!match && range & ClientRangeMedium) {
|
||||
if (dist >= 250.0f && dist < 1500.0f) {
|
||||
if (dist >= short_range && dist < long_range) {
|
||||
match = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!match && range & ClientRangeLong) {
|
||||
if (dist >= 1500.0f) {
|
||||
if (dist >= long_range) {
|
||||
match = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user