diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 737b1350c..3a8d41c26 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -1,4 +1,4 @@ -NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.553 $ $NHDT-Date: 1622320390 2021/05/29 20:33:10 $ +NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.554 $ $NHDT-Date: 1622363511 2021/05/30 08:31:51 $ General Fixes and Modified Features ----------------------------------- @@ -534,6 +534,8 @@ make exploding spheres create an actual explosion pets are more careful about attacking monsters at low health allow killing your quest leader to open the quest give King Arthur Excalibur +when moving the cursor to examine the map, have '^' move to next trap even if + that trap is displayed with some other symbol (web, vibrating square) Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/do_name.c b/src/do_name.c index 5bf731736..64049cde6 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 do_name.c $NHDT-Date: 1614818323 2021/03/04 00:38:43 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.198 $ */ +/* NetHack 3.7 do_name.c $NHDT-Date: 1622363509 2021/05/30 08:31:49 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.202 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Pasi Kallinen, 2018. */ /* NetHack may be freely redistributed. See license for details. */ @@ -884,7 +884,12 @@ getpos(coord *ccp, boolean force, const char *goal) || glyph_to_cmap(k) == S_corr || glyph_to_cmap(k) == S_litcorr) continue; - if (c == defsyms[sidx].sym || c == (int) g.showsyms[sidx]) + if (c == defsyms[sidx].sym + || c == (int) g.showsyms[sidx] + /* have '^' match webs and vibrating square or any + other trap that uses something other than '^' */ + || (c == '^' && (is_cmap_trap(sidx) + || sidx == S_vibrating_square))) matching[sidx] = (char) ++k; } if (k) {