Pārlūkot izejas kodu

Also unset the placed!

Reddo 5 gadi atpakaļ
vecāks
revīzija
1f3ed948ad
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      app/World/Classes/RandomDungeons/RoomRandomMap.ts

+ 2 - 0
app/World/Classes/RandomDungeons/RoomRandomMap.ts

@@ -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--;