Taper down on non-moving client update spam

This commit is contained in:
Akkadius
2017-07-15 17:05:28 -05:00
parent 6c1efd74cb
commit f9480f2518
3 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ bool Client::Process() {
SendHPUpdate();
/* I haven't naturally updated my position in 10 seconds, updating manually */
if (position_update_timer.Check()) {
if (!is_client_moving && position_update_timer.Check()) {
SendPositionUpdate();
}