|
@@ -133,6 +133,8 @@ class RoomRandomMap {
|
|
|
|
|
|
public unmap (x : number, y : number) {
|
|
|
if (this.positionTable[x] != undefined && this.positionTable[x][y] != undefined) {
|
|
|
+ let room = this.positionTable[x][y];
|
|
|
+ room.placed = false;
|
|
|
this.roomMap.delete(this.positionTable[x][y]);
|
|
|
delete (this.positionTable[x][y]);
|
|
|
this.rooms--;
|