fix: matchmaking: undefinned in gamemode choice field
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user