iron bars and wallification
- iron bars should be treated like doors with respect to wallification
This commit is contained in:
@@ -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
|
||||
|
||||
12
src/mkmaze.c
12
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 */
|
||||
|
||||
Reference in New Issue
Block a user