about summary refs log tree commit diff homepage
path: root/brutalmaze/maze.py
diff options
context:
space:
mode:
Diffstat (limited to 'brutalmaze/maze.py')
-rw-r--r--brutalmaze/maze.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/brutalmaze/maze.py b/brutalmaze/maze.py
index db7672c..5788777 100644
--- a/brutalmaze/maze.py
+++ b/brutalmaze/maze.py
@@ -110,7 +110,10 @@ class Maze:
                 continue
             enemy = new_enemy(self, x, y)
             self.enemies.append(enemy)
-            if plum is None or not plum.clone(enemy): walls.remove((x, y))
+            if plum is None or not plum.clone(enemy):
+                walls.remove((x, y))
+            else:
+                self.map[x][y] = WALL
 
     def get_pos(self, x, y):
         """Return coordinate of the center of the grid (x, y)."""