mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix auto-attack stalling after SMSG_ATTACKSTOP and remove stale comments
Re-send CMSG_ATTACKSWING every second while auto-attacking so combat resumes automatically when the server pauses the attack loop (out of range, etc). Previously the client kept autoAttacking=true but never re-engaged, requiring the player to manually right-click again. Also remove leftover single-player/offline references from comments.
This commit is contained in:
parent
22648870f3
commit
bd70ca17ca
5 changed files with 14 additions and 4 deletions
|
|
@ -1279,6 +1279,7 @@ private:
|
|||
bool autoAttacking = false;
|
||||
uint64_t autoAttackTarget = 0;
|
||||
bool autoAttackOutOfRange_ = false;
|
||||
float autoAttackResendTimer_ = 0.0f; // Re-send CMSG_ATTACKSWING every ~1s while attacking
|
||||
std::unordered_set<uint64_t> hostileAttackers_;
|
||||
std::vector<CombatTextEntry> combatText;
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ struct ActiveTransport {
|
|||
glm::mat4 transform; // Cached world transform
|
||||
glm::mat4 invTransform; // Cached inverse for collision
|
||||
|
||||
// Player attachment (single-player for now)
|
||||
// Player attachment state
|
||||
bool playerOnBoard;
|
||||
glm::vec3 playerLocalOffset;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue