From aba7a864802f0a728be053b780c67230f89c8210 Mon Sep 17 00:00:00 2001 From: Oliver Klemenz Date: Fri, 29 Apr 2022 13:19:19 +0200 Subject: [PATCH] Fix exitDoorOpen bug --- src/Level.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Level.js b/src/Level.js index fdfa7e9..ac95a91 100644 --- a/src/Level.js +++ b/src/Level.js @@ -21,6 +21,9 @@ PrinceJS.Level = function (game, number, name, type) { this.maskedTiles = {}; this.dummyWall = new PrinceJS.Tile.Base(this.game, PrinceJS.Level.TILE_WALL, 0, this.type); + + this.exitDoorOpen = false; + this.activeGates = []; }; PrinceJS.Level.TYPE_DUNGEON = 0; @@ -86,9 +89,6 @@ PrinceJS.Level.prototype = { this.back.add(tile.back); this.front.add(tile.front); - - this.exitDoorOpen = false; - this.activeGates = []; }, addTrob: function (trob) {