Route all lobby transitions through showLobby() for animation cleanup
game_ended, queue_left, and cancelMatchmaking were calling
showScreen('lobby') directly, bypassing the cancelAll() cleanup.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
56305424ff
commit
21985b7e9b
@ -950,7 +950,7 @@ class GolfGame {
|
||||
// Host ended the game or player was kicked
|
||||
this._intentionalClose = true;
|
||||
if (this.ws) this.ws.close();
|
||||
this.showScreen('lobby');
|
||||
this.showLobby();
|
||||
if (data.reason) {
|
||||
this.showError(data.reason);
|
||||
}
|
||||
@ -975,7 +975,7 @@ class GolfGame {
|
||||
|
||||
case 'queue_left':
|
||||
this.stopMatchmakingTimer();
|
||||
this.showScreen('lobby');
|
||||
this.showLobby();
|
||||
break;
|
||||
|
||||
case 'error':
|
||||
@ -995,7 +995,7 @@ class GolfGame {
|
||||
cancelMatchmaking() {
|
||||
this.send({ type: 'queue_leave' });
|
||||
this.stopMatchmakingTimer();
|
||||
this.showScreen('lobby');
|
||||
this.showLobby();
|
||||
}
|
||||
|
||||
startMatchmakingTimer() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user