fix: correction d'erreur dans le choix de bonne sortie
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user