Stuck scoring at zero fixed by regular map area update in session #24
@ -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
I would format it this way to be consistent: