Merged in bugfix/MAPG-121-game-doesnt-work (pull request #96)

MAPG-121 fix wrong condition
This commit is contained in:
Bence Pőcze 2020-06-10 18:35:57 +00:00
commit 3fb538469b

View File

@ -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(),