Compare commits

..

No commits in common. "6e03476173e267c5107d501799dd64033c3134ed" and "a417fbd7604fa4ff3b90fe51b1dcf3791d0677c6" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -520,7 +520,7 @@
scoreInfo.children[1].style.display = 'block';
document.getElementById('showSummaryButton').style.display = null;
if (!room || Game.multi.owner) {
if (Game.multi.owner) {
document.getElementById('startNewGameButton').style.display = 'block';
}

View File

@ -72,14 +72,14 @@ class GameController
);
}
public function getMultiGame(): IContent
public function getMultiGame()
{
$roomId = $this->request->query('roomId');
return new HtmlContent('game', ['roomId' => $roomId]);
}
public function prepareGame(): IContent
public function prepareGame(int $mapId): IContent
{
$mapId = (int) $this->request->query('mapId');
$map = $this->mapRepository->getById($mapId);
@ -146,7 +146,7 @@ class GameController
]);
}
private function getMultiToken(string $roomId): string
private function getMultiToken(string $roomId, bool $forceNew = false)
{
$session = $this->request->session();