iron bars and wallification

- iron bars should be treated like doors with respect to wallification
This commit is contained in:
cohrs
2002-03-05 07:46:40 +00:00
parent bf2190c55e
commit 51fac7ac64
2 changed files with 9 additions and 4 deletions
+1
View File
@@ -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 cloned monsters should have the same name and tameness as the original
you should stop eating (etc.) if a monster attacks you and misses you should stop eating (etc.) if a monster attacks you and misses
half physical damage should apply to gas spores half physical damage should apply to gas spores
iron bars should affect wall corner wallification
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+7 -3
View File
@@ -29,9 +29,12 @@ STATIC_OVL boolean
iswall(x,y) iswall(x,y)
int x,y; int x,y;
{ {
register int type;
if (!isok(x,y)) return FALSE; if (!isok(x,y)) return FALSE;
return (IS_WALL(levl[x][y].typ) || IS_DOOR(levl[x][y].typ) type = levl[x][y].typ;
|| levl[x][y].typ == SDOOR); return (IS_WALL(type) || IS_DOOR(type) ||
type == SDOOR || type == IRONBARS);
} }
STATIC_OVL boolean STATIC_OVL boolean
@@ -44,7 +47,8 @@ iswall_or_stone(x,y)
if (!isok(x,y)) return TRUE; if (!isok(x,y)) return TRUE;
type = levl[x][y].typ; 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 */ /* return TRUE if out of bounds, wall or rock */