From 3ef8dfe4aa7b6b137ca14a6da875c5600cd246f1 Mon Sep 17 00:00:00 2001 From: cohrs Date: Mon, 14 Jul 2003 00:52:26 +0000 Subject: [PATCH] B04007 - invisible steed glyph while chatting and blind 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 | 1 + src/display.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/fixes34.2 b/doc/fixes34.2 index 3e2984c34..55c4301c0 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -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 diff --git a/src/display.c b/src/display.c index d23559021..cfecb1407 100644 --- a/src/display.c +++ b/src/display.c @@ -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); + } } /* -- 2.40.0