[Client] Fix IsMoving for Client (#2318)

* [Client] Fix IsMoving for client

* Consolidate member vars

* Update client_process.cpp
This commit is contained in:
Chris Miles
2022-07-27 08:51:51 -05:00
committed by GitHub
parent 1089f8139b
commit 7d2f88325a
4 changed files with 12 additions and 15 deletions
+2 -2
View File
@@ -124,7 +124,7 @@ bool Client::Process() {
}
/* I haven't naturally updated my position in 10 seconds, updating manually */
if (!is_client_moving && position_update_timer.Check()) {
if (!IsMoving() && position_update_timer.Check()) {
SentPositionPacket(0.0f, 0.0f, 0.0f, 0.0f, 0);
}
@@ -291,7 +291,7 @@ bool Client::Process() {
* Used in aggro checks
*/
if (mob_close_scan_timer.Check()) {
entity_list.ScanCloseMobs(close_mobs, this, is_client_moving);
entity_list.ScanCloseMobs(close_mobs, this, IsMoving());
}
bool may_use_attacks = false;