Mob position updates now completely only send to 600 units range defined by Range:MobPositionUpdates

Client updates nearby clients more often because they will disappear after 10 seconds without a position update to the client
This results in a massive reduction in unnecessary traffic as we only update clients of their relevance around them
This also resembles live-like packet sending behavior of positions
This commit is contained in:
Akkadius committed 2017-07-10 23:03:40 -05:00
1 parent dceb79ad69
commit ec00daa5be
7 files changed
+73 -69

No files matched your search

+4 -4
View File
@@ -588,10 +588,10 @@ void Client::CompleteConnect()
}
}
else {
Group *group_update = nullptr;
group_update = this->GetGroup();
if (group_update)
group_update->SendHPPacketsTo(this);
Group *group = nullptr;
group = this->GetGroup();
if (group)
group->SendHPPacketsTo(this);
}