fix: correction d'erreur dans le choix de bonne sortie

This commit is contained in:
2026-08-03 00:21:31 +02:00
parent 4d57dfa233
commit c4370815f2
9 changed files with 14 additions and 12 deletions

View File

@@ -12,9 +12,10 @@ import { showGameOver, showVictory, updateTimerDisplay } from "./ui.js";
setupMovement();
socket.on("status", (msg) => console.log("Status: ", (msg));
roleState.current = role;
socket.on("status", (msg) => console.log("Status: ", msg));
socket.on("role", (role) => {
roleState.current = role;
if (role === "explorateur") {
render();
} else {