Skip to content
Snippets Groups Projects
Commit 58bb18bb authored by dg's avatar dg
Browse files

Roomer generator should now make less doors

git-svn-id: http://svn.net-core.org/repos/t-engine4@394 51575b47-30f0-44d4-a5cc-537603b46e54
parent f17cbeb8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment