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
All checks were successful
default-pipeline default-pipeline #115
This commit is contained in:
parent
0f810bd2ba
commit
845d77ebda
@ -93,6 +93,11 @@ class GameController
|
|||||||
'currentRound' => -1
|
'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([
|
return new JsonContent([
|
||||||
'mapId' => $mapId,
|
'mapId' => $mapId,
|
||||||
|
Loading…
Reference in New Issue
Block a user