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
|
|
@ -418,7 +418,6 @@ void Application::setState(AppState newState) {
|
|||
gameHandler->sendMovement(static_cast<game::Opcode>(opcode));
|
||||
}
|
||||
});
|
||||
// Keep player locomotion WoW-like in both single-player and online modes.
|
||||
cc->setUseWoWSpeed(true);
|
||||
}
|
||||
if (gameHandler) {
|
||||
|
|
@ -884,7 +883,7 @@ void Application::render() {
|
|||
|
||||
renderer->beginFrame();
|
||||
|
||||
// Only render 3D world when in-game (after server connect or single-player)
|
||||
// Only render 3D world when in-game
|
||||
if (state == AppState::IN_GAME) {
|
||||
if (world) {
|
||||
renderer->renderWorld(world.get(), gameHandler.get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue