Skip to content

Commit

Permalink
fix 'symmetric' option
Browse files Browse the repository at this point in the history
  • Loading branch information
domasx2 committed Jan 30, 2016
1 parent dfb0bf0 commit 642a690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/generators/dungeon.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default class Dungeon extends Generator {
let room = new Room({
size: this.random.vec(opts.min_size, opts.max_size),
max_exits: opts.max_exits,
symmetric_rooms: this.symmetric_rooms,
symmetric: this.symmetric_rooms,
tag: key
});

Expand Down
2 changes: 1 addition & 1 deletion src/pieces/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class Room extends Piece {
this.add_perimeter([1, this.size[1] - 1], [this.size[0] - 2, this.size[1] - 1], 0);
this.add_perimeter([this.size[0] - 1, 1], [this.size[0] - 1, this.size[1] - 2], 270);
} else { //only middle of each wall can be exit
let {w, h} = this.get_center_pos();
let [w, h] = this.get_center_pos();

this.perimeter = [
[[w, 0], 180],
Expand Down

0 comments on commit 642a690

Please sign in to comment.