mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-03 20:03:50 +00:00
fix: MSG_MOVE_START_DESCEND never set DESCENDING flag
Only ASCENDING was cleared — the DESCENDING flag was never toggled, so outgoing movement packets during flight descent had incorrect flags. Also clears DESCENDING on start-ascend and stop-ascend for symmetry. Replaces static heartbeat log counter with member variable (was shared across instances and not thread-safe) and demotes to LOG_DEBUG.
This commit is contained in:
parent
b0aa4445a0
commit
4e0e234ae9
2 changed files with 11 additions and 5 deletions
|
|
@ -211,6 +211,7 @@ private:
|
|||
uint32_t fallStartMs_ = 0;
|
||||
|
||||
// Heartbeat timing
|
||||
int heartbeatLogCount_ = 0; // periodic position audit counter
|
||||
float timeSinceLastMoveHeartbeat_ = 0.0f;
|
||||
float moveHeartbeatInterval_ = 0.5f;
|
||||
uint32_t lastHeartbeatSendTimeMs_ = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue