From af6915f8c36bcff4068d417c5b63015be28e7b13 Mon Sep 17 00:00:00 2001 From: Miguel Ripoll <3296866+MiguelRipoll23@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:40:10 +0100 Subject: [PATCH] Revert "Replace alert with console.warn for server connection messages" (#54) --- src/services/game-loop-service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/game-loop-service.ts b/src/services/game-loop-service.ts index 9097b66..2b14052 100644 --- a/src/services/game-loop-service.ts +++ b/src/services/game-loop-service.ts @@ -87,10 +87,12 @@ export class GameLoopService { payload: ServerDisconnectedPayload ): void { if (payload.connectionLost) { - console.warn("Connection to server lost"); + alert("Connection to server was lost"); } else { - console.warn("Failed to connect to server"); + alert("Failed to connect to server"); } + + window.location.reload(); } private handleServerNotificationEvent(