dont send the non-flag to the server

This commit is contained in:
PilkeySEK
2025-03-01 09:12:43 +01:00
parent 0b5d526dbe
commit 1ffa06b5a8
+4 -1
View File
@@ -143,7 +143,10 @@ class Client {
this.gameStop = joinLobby(
{
gameType: gameType,
flag: (): string => this.flagInput.getCurrentFlag(),
flag: (): string =>
this.flagInput.getCurrentFlag() == "xx"
? ""
: this.flagInput.getCurrentFlag(),
playerName: (): string => this.usernameInput.getCurrentUsername(),
gameID: lobby.id,
persistentID: getPersistentIDFromCookie(),