From 51fac7ac6417f7d8bbdb744c1b43b3b1bf576e7e Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 5 Mar 2002 07:46:40 +0000 Subject: [PATCH] iron bars and wallification - iron bars should be treated like doors with respect to wallification --- doc/fixes34.0 | 1 + src/mkmaze.c | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/fixes34.0 b/doc/fixes34.0 index e856dddc3..b13f6d021 100644 --- a/doc/fixes34.0 +++ b/doc/fixes34.0 @@ -448,6 +448,7 @@ fixed a few places where unblock_point wasn't called but should have been cloned monsters should have the same name and tameness as the original you should stop eating (etc.) if a monster attacks you and misses half physical damage should apply to gas spores +iron bars should affect wall corner wallification Platform- and/or Interface-Specific Fixes diff --git a/src/mkmaze.c b/src/mkmaze.c index 6319246b0..9448b584e 100644 --- a/src/mkmaze.c +++ b/src/mkmaze.c @@ -29,9 +29,12 @@ STATIC_OVL boolean iswall(x,y) int x,y; { - if (!isok(x,y)) return FALSE; - return (IS_WALL(levl[x][y].typ) || IS_DOOR(levl[x][y].typ) - || levl[x][y].typ == SDOOR); + register int type; + + if (!isok(x,y)) return FALSE; + type = levl[x][y].typ; + return (IS_WALL(type) || IS_DOOR(type) || + type == SDOOR || type == IRONBARS); } STATIC_OVL boolean @@ -44,7 +47,8 @@ iswall_or_stone(x,y) if (!isok(x,y)) return TRUE; type = levl[x][y].typ; - return (type == STONE || IS_WALL(type) || IS_DOOR(type) || type == SDOOR); + return (type == STONE || IS_WALL(type) || IS_DOOR(type) || + type == SDOOR || type == IRONBARS); } /* return TRUE if out of bounds, wall or rock */