MAPG-203 select places at the beginning of the game
default-pipeline default-pipeline #21

This commit is contained in:
bence committed 2021-03-17 22:47:11 +01:00
1 parent 01f0f7d4bc
commit edd8c0f8a4
3 files changed
+58 -53

No files matched your search

+2 -2
View File
@@ -35,14 +35,14 @@ class GameController
private function prepareGame(int $mapId): array
{
$map = $this->mapRepository->getById($mapId);
$session = $this->request->session();
if (!($state = $session->get('state')) || $state['mapId'] !== $mapId) {
$session->set('state', [
'mapId' => $mapId,
'area' => $map->getArea(),
'rounds' => []
'rounds' => [],
'currentRound' => -1
]);
}