]> granicus.if.org Git - nethack/commitdiff
B04007 - invisible steed glyph while chatting and blind
authorcohrs <cohrs>
Mon, 14 Jul 2003 00:52:26 +0000 (00:52 +0000)
committercohrs <cohrs>
Mon, 14 Jul 2003 00:52:26 +0000 (00:52 +0000)
Avoid ever putting an "I" on the hero's location by checking it in
map_invisible().  It appeared there were a few other special cases that
could call map_invisible() for actions involving the steed, so checking there
catches them all.

doc/fixes34.2
src/display.c

index 3e2984c349cf0864129a729315046ced2480d2f4..55c4301c0e7802d1e26f31402fc82cac5d6706cb 100644 (file)
@@ -102,6 +102,7 @@ show artifact hit message which affect the monster that swallowed the hero
 revived pet corpse from bones file should not be loyal to current player
 finding a statue trap you are about to dig should stop your occupation
 try to keep saddle at the same location as the steed corpse
+never display I symbol on the mounted hero/steed location
 
 
 Platform- and/or Interface-Specific Fixes
index d23559021e42a0607c859ce8d152050586490d6a..cfecb14073088b8cfb1ffb782e429934083b8ee9 100644 (file)
@@ -272,9 +272,11 @@ void
 map_invisible(x, y)
 register xchar x, y;
 {
-    if (level.flags.hero_memory)
-       levl[x][y].glyph = GLYPH_INVISIBLE;
-    show_glyph(x, y, GLYPH_INVISIBLE);
+    if (x != u.ux || y != u.uy) { /* don't display I at hero's location */
+       if (level.flags.hero_memory)
+           levl[x][y].glyph = GLYPH_INVISIBLE;
+       show_glyph(x, y, GLYPH_INVISIBLE);
+    }
 }
 
 /*