area of map is updated in the session at each game preparation to avoid outdated map area and wrong score calculation
All checks were successful
default-pipeline default-pipeline #115

This commit is contained in:
Balázs Vigh 2021-04-27 16:46:40 +02:00
parent 0f810bd2ba
commit 845d77ebda

View File

@ -93,6 +93,11 @@ class GameController
'currentRound' => -1
]);
}
// update the area of the map in the session in any case
else {
$state['area'] = $map->getArea();
$session->set('state', $state);
}
return new JsonContent([
'mapId' => $mapId,