Merged in bugfix/MAPG-121-game-doesnt-work (pull request #96)
MAPG-121 fix wrong condition
This commit is contained in:
commit
3fb538469b
@ -43,7 +43,7 @@ class GameController
|
|||||||
|
|
||||||
$session = $this->request->session();
|
$session = $this->request->session();
|
||||||
|
|
||||||
if (($state = $session->get('state')) && $state['mapId'] !== $mapId) {
|
if (!($state = $session->get('state')) || $state['mapId'] !== $mapId) {
|
||||||
$session->set('state', [
|
$session->set('state', [
|
||||||
'mapId' => $mapId,
|
'mapId' => $mapId,
|
||||||
'area' => $bounds->calculateApproximateArea(),
|
'area' => $bounds->calculateApproximateArea(),
|
||||||
|
Loading…
Reference in New Issue
Block a user