From 66b90be0da2307bdbdfa0bbe75fc1f90f08278e6 Mon Sep 17 00:00:00 2001 From: Lurkars Date: Sat, 27 Feb 2021 15:52:17 +0100 Subject: [PATCH] remove redundancy --- front/src/Phaser/Game/GameScene.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 4ec5e4ad..e33f1023 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -411,9 +411,8 @@ export class GameScene extends ResizableScene implements CenterListener { //add layer on map this.Layers = new Array(); - let depth = this.createHelper(this.mapFile.layers, -2, ''); - if (depth === -2) { + if (this.createHelper(this.mapFile.layers, -2, '') === -2) { throw new Error('Your map MUST contain a layer of type "objectgroup" whose name is "floorLayer" that represents the layer characters are drawn at.'); }