From 58bb18bb3f3c0bb17ca42955430602c9446ddd02 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Wed, 10 Mar 2010 09:23:42 +0000 Subject: [PATCH] Roomer generator should now make less doors git-svn-id: http://svn.net-core.org/repos/t-engine4@394 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/engine/generator/map/Roomer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/engine/generator/map/Roomer.lua b/game/engine/generator/map/Roomer.lua index 9d2cee6d6a..af39940c16 100644 --- a/game/engine/generator/map/Roomer.lua +++ b/game/engine/generator/map/Roomer.lua @@ -189,8 +189,8 @@ function _M:tunnel(x1, y1, x2, y2, id) if self.map.room_map[nx][ny].can_open then print(feat, "tunnel crossing can_open", nx,ny) for i = -1, 1 do for j = -1, 1 do if self.map:isBound(nx + i, ny + j) and self.map.room_map[nx + i][ny + j].can_open then --- self.map.room_map[nx + i][ny + j].can_open = false --- print(feat, "forbiding crossing at ", nx+i,ny+j) + self.map.room_map[nx + i][ny + j].can_open = false + print(feat, "forbiding crossing at ", nx+i,ny+j) end end end tun[#tun+1] = {nx,ny,true} x1, y1 = nx, ny -- GitLab