Skip to content
Snippets Groups Projects
Commit b2cdf7c6 authored by ivarnm's avatar ivarnm
Browse files

Merge branch 'dev'

parents 528c0f9c b86ce93d
No related branches found
No related tags found
No related merge requests found
Pipeline #81423 passed
......@@ -449,7 +449,7 @@ function roundcheck(client, tournament, roundid) {
// fetched the round objects of the active round
let activePlayer;
for (let i = 0; i < rounds.length; i++) {
if (rounds[i]._id === roundid) {
if (rounds[i]._id.str == roundid.str) {
activePlayer = rounds[i].playerId;
break;
}
......@@ -526,7 +526,8 @@ function roundcheck(client, tournament, roundid) {
tourny = result.value;
const game =
tourny.games[
tourny.currentRound % tourny.games.length
(tourny.currentRound % tourny.games.length) -
1
];
const date = new Date();
date.setTime(
......
......@@ -512,7 +512,8 @@ function roundcheck(client, tournament) {
tourny = result.value;
const game = // Finds the next game of the round
tourny.games[
tourny.currentRound % tourny.games.length
(tourny.currentRound % tourny.games.length) -
1
];
const date = new Date();
date.setTime(
......
......@@ -147,7 +147,7 @@ public class CreateNewTournamentState extends State {
innerTable.setBackground(backgroundTableBlueRounded);
innerTable.add(makeRow(nameLabel, nameDialog));
nameInputField.setMaxLength(15);
nameInputField.setMaxLength(10);
innerTable.add(nameInputField).size(nameFieldWidth, inputFieldHeight);
innerTable.row();
removeKeyPadAtTouch();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment