Make filtering out OP_ClientUpdate less aggressive to fix spinning toons

If we are too aggressive filtering out the same position packets it's
possible for toons to continue to spin indefinitely. Instead of
just not sending the update when the position is the same we keep a
tally of how many we get and stop once a threshold (6) is reached.
This commit is contained in:
Michael Cook (mackal)
2015-06-08 18:04:08 -04:00
parent 226bb4f3b2
commit 5186d3a2ef
3 changed files with 16 additions and 1 deletions
+3
View File
@@ -1447,6 +1447,9 @@ private:
Timer position_timer;
uint8 position_timer_counter;
// this is used to try to cut back on position update reflections
int position_update_same_count;
PTimerList p_timers; //persistent timers
Timer hpupdate_timer;
Timer camp_timer;