mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-02 15:53:51 +00:00
Fix chest interaction and measure server RTT for latency meter
Chests (and lockboxes, coffers, etc.) failed to open because CMSG_LOOT was only sent on Classic/Turtle expansions, and only when GO type was already cached as type 3. Fix: always send CMSG_LOOT after CMSG_GAMEOBJ_USE (server silently ignores it for non-lootable objects). Also broaden CMSG_GAMEOBJ_REPORT_USE to all non-mailbox WotLK GOs. Latency meter: record pingTimestamp_ in sendPing() and compute RTT in handlePong(); add toggleable "Show Latency Meter" checkbox in Interface settings (saved to settings.cfg).
This commit is contained in:
parent
14f672ab6a
commit
711cb966ef
4 changed files with 42 additions and 16 deletions
|
|
@ -1862,6 +1862,7 @@ private:
|
|||
float timeSinceLastMoveHeartbeat_ = 0.0f; // Periodic movement heartbeat to keep server position synced
|
||||
float moveHeartbeatInterval_ = 0.5f;
|
||||
uint32_t lastLatency = 0; // Last measured latency (milliseconds)
|
||||
std::chrono::steady_clock::time_point pingTimestamp_; // Time CMSG_PING was sent
|
||||
|
||||
// Player GUID and map
|
||||
uint64_t playerGuid = 0;
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ private:
|
|||
bool pendingMinimapRotate = false;
|
||||
bool pendingMinimapSquare = false;
|
||||
bool pendingMinimapNpcDots = false;
|
||||
bool pendingShowLatencyMeter = true;
|
||||
bool pendingSeparateBags = true;
|
||||
bool pendingAutoLoot = false;
|
||||
|
||||
|
|
@ -159,6 +160,7 @@ private:
|
|||
bool minimapRotate_ = false;
|
||||
bool minimapSquare_ = false;
|
||||
bool minimapNpcDots_ = false;
|
||||
bool showLatencyMeter_ = true; // Show server latency indicator
|
||||
bool minimapSettingsApplied_ = false;
|
||||
bool volumeSettingsApplied_ = false; // True once saved volume settings applied to audio managers
|
||||
bool msaaSettingsApplied_ = false; // True once saved MSAA setting applied to renderer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue