summaryrefslogtreecommitdiff
path: root/src/cave.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-01-08 22:55:59 +0100
committerBardur Arantsson <bardur@scientician.net>2010-01-08 23:46:23 +0100
commitf7eb880a91dc00f0531fe6a6ec795fe56ae5fc3f (patch)
tree2c85e919f22ec7c00ecd923266e48ada19c8c126 /src/cave.c
parent884505957dbd7caf37642e8330e10d0b71d47554 (diff)
Import fix from CVS: Don't generate impassable glass walls.
Diffstat (limited to 'src/cave.c')
-rw-r--r--src/cave.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cave.c b/src/cave.c
index fa65b321..12bedde5 100644
--- a/src/cave.c
+++ b/src/cave.c
@@ -4892,6 +4892,19 @@ void place_floor(int y, int x)
}
/*
+ * This routine is used when the current feature gets convert to a floor and
+ * the possible floor types include glass which is permanent. An unpassable
+ * feature is undesirable, so the glass gets convert to molten glass which
+ * is passable.
+ */
+void place_floor_convert_glass(int y, int x)
+{
+ place_floor(y, x);
+
+ if (cave[y][x].feat == 188) cave[y][x].feat = 217;
+}
+
+/*
* Place a cave filler at (y, x)
*/
void place_filler(int y, int x)