fix: matchmaking: undefinned in gamemode choice field

This commit is contained in:
Namonay
2024-05-06 18:09:48 +02:00
parent 2bc42e3349
commit 5a035e6370
6 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import { client } from "../../../index.js";
import { client, lang } from "../../../index.js";
import { AGame } from "../AGame.js";
class TicTacToe
@ -87,7 +88,7 @@ class TicTacToe
this.context.closePath();
this.context.beginPath();
this.context.fillStyle = (winning_sign == "o") ? "red" : "green";
this.context.fillText((winning_sign == "o") ? "Winner is : O" : "Winner is : X", this.width / 2 - 30, this.height - this.gap / 2, 140);
this.context.fillText((winning_sign == "o") ? lang.get("morpionWin") + "O" : lang.get("morpionWin") + "X", this.width / 2 - 30, this.height - this.gap / 2, 140);
this.context.closePath();
}
checkWin()