From f518830073c996cb9f2fd942a6416928b8ace0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 10 Jun 2020 16:00:54 +0200 Subject: [PATCH] Minor change to make sure the scene starts even if in background (does this really work?) --- front/src/Phaser/Game/GameManager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front/src/Phaser/Game/GameManager.ts b/front/src/Phaser/Game/GameManager.ts index c804a8b9..f9c7c820 100644 --- a/front/src/Phaser/Game/GameManager.ts +++ b/front/src/Phaser/Game/GameManager.ts @@ -187,8 +187,7 @@ export class GameManager { reconnectToGameScene(lastPositionShared: PointInterface) { const game : Phaser.Scene = GameScene.createFromUrl(this.oldMapUrlFile, this.oldInstance); - this.reconnectScene.scene.add(this.oldSceneKey, game, false); - this.reconnectScene.scene.start(this.oldSceneKey, { initPosition: lastPositionShared }); + this.reconnectScene.scene.add(this.oldSceneKey, game, true, { initPosition: lastPositionShared }); } private getCurrentGameScene(): GameScene {