elsewhere, restrict them such that they don't work inside solid rock
wand/scroll/spell of light now hurts gremlins (lamp/candle light doesn't)
ditto for hero in gremlin form (camera too)
+autosearch finds and transforms secret doors and corridors even while blind,
+ but it wasn't updating the map to show them unless the hero could see
Platform- and/or Interface-Specific Fixes
int
dosearch0(aflag)
-register int aflag;
+register int aflag; /* intrinsic autosearch vs explicit searching */
{
#ifdef GCC_BUG
/* some versions of gcc seriously muck up nested loops. if you get strange
cvt_sdoor_to_door(&levl[x][y]); /* .typ = DOOR */
exercise(A_WIS, TRUE);
nomul(0);
- if (Blind && !aflag)
- feel_location(x,y); /* make sure it shows up */
- else
- newsym(x,y);
+ feel_location(x, y); /* make sure it shows up */
+ You("find a hidden door.");
} else if(levl[x][y].typ == SCORR) {
if(rnl(7-fund)) continue;
levl[x][y].typ = CORR;
unblock_point(x,y); /* vision */
exercise(A_WIS, TRUE);
nomul(0);
- newsym(x,y);
+ feel_location(x, y); /* make sure it shows up */
+ You("find a hidden passage.");
} else {
/* Be careful not to find anything in an SCORR or SDOOR */
if((mtmp = m_at(x, y)) && !aflag) {
return(1);
}
+/* the 's' command -- explicit searching */
int
dosearch()
{