Make getpos for doors also target drawbridges
This commit is contained in:
@@ -227,6 +227,10 @@
|
|||||||
|
|
||||||
#define DARKROOMSYM (Is_rogue_level(&u.uz) ? S_stone : S_darkroom)
|
#define DARKROOMSYM (Is_rogue_level(&u.uz) ? S_stone : S_darkroom)
|
||||||
|
|
||||||
|
#define is_cmap_trap(i) ((i) >= S_arrow_trap && (i) <= S_polymorph_trap)
|
||||||
|
#define is_cmap_drawbridge(i) ((i) >= S_vodbridge && (i) <= S_hcdbridge)
|
||||||
|
#define is_cmap_door(i) ((i) >= S_vodoor && (i) <= S_hcdoor)
|
||||||
|
|
||||||
struct symdef {
|
struct symdef {
|
||||||
uchar sym;
|
uchar sym;
|
||||||
const char *explanation;
|
const char *explanation;
|
||||||
|
|||||||
@@ -137,11 +137,9 @@ int glyph, gloc;
|
|||||||
&& glyph != objnum_to_glyph(BOULDER)
|
&& glyph != objnum_to_glyph(BOULDER)
|
||||||
&& glyph != objnum_to_glyph(ROCK));
|
&& glyph != objnum_to_glyph(ROCK));
|
||||||
case GLOC_DOOR: return (glyph_is_cmap(glyph)
|
case GLOC_DOOR: return (glyph_is_cmap(glyph)
|
||||||
&& ((glyph_to_cmap(glyph) == S_hcdoor)
|
&& (is_cmap_door(glyph_to_cmap(glyph))
|
||||||
|| (glyph_to_cmap(glyph) == S_vcdoor)
|
|| is_cmap_drawbridge(glyph_to_cmap(glyph))
|
||||||
|| (glyph_to_cmap(glyph) == S_hodoor)
|
|| glyph_to_cmap(glyph) == S_ndoor));
|
||||||
|| (glyph_to_cmap(glyph) == S_vodoor)
|
|
||||||
|| (glyph_to_cmap(glyph) == S_ndoor)));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -775,9 +775,6 @@ const char **firstmatch;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define is_cmap_trap(i) ((i) >= S_arrow_trap && (i) <= S_polymorph_trap)
|
|
||||||
#define is_cmap_drawbridge(i) ((i) >= S_vodbridge && (i) <= S_hcdbridge)
|
|
||||||
|
|
||||||
/* Now check for graphics symbols */
|
/* Now check for graphics symbols */
|
||||||
alt_i = (sym == (looked ? showsyms[0] : defsyms[0].sym)) ? 0 : (2 + 1);
|
alt_i = (sym == (looked ? showsyms[0] : defsyms[0].sym)) ? 0 : (2 + 1);
|
||||||
for (hit_trap = FALSE, i = 0; i < MAXPCHARS; i++) {
|
for (hit_trap = FALSE, i = 0; i < MAXPCHARS; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user