Skip to content

Commit

Permalink
Fix exitDoorOpen bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oklemenz committed Apr 29, 2022
1 parent fc14f9b commit aba7a86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Level.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit aba7a86

Please sign in to comment.