diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-08 22:55:59 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-08 23:46:23 +0100 |
commit | f7eb880a91dc00f0531fe6a6ec795fe56ae5fc3f (patch) | |
tree | 2c85e919f22ec7c00ecd923266e48ada19c8c126 /src/cave.c | |
parent | 884505957dbd7caf37642e8330e10d0b71d47554 (diff) |
Import fix from CVS: Don't generate impassable glass walls.
Diffstat (limited to 'src/cave.c')
-rw-r--r-- | src/cave.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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) |