restrict a recent deaf message change to player actions only

This commit is contained in:
nhmall
2019-11-11 10:59:07 -05:00
parent 593ba7ebb4
commit c2bbbebd8e
2 changed files with 6 additions and 2 deletions

View File

@@ -248,6 +248,7 @@ in symset:curses, symbol S_tree was accidentally set to horizontal line where
plus-or-minus sign was meant; also, change S_bars to not-equals sign
percentage highlighting for Xp broke up/down/changed highlighting for it;
it was flagged as having gone up every time the percentage changed
deaf change to zap_over_floor needed to be restricted to player actions only
curses: sometimes the message window would show a blank line after a prompt
curses: the change to show map in columns 1..79 instead of 2..80 made the
highlight for '@' show up in the wrong place if clipped map had been

View File

@@ -4443,7 +4443,9 @@ short exploding_wand_typ;
} else if (is_pool(x, y)) {
const char *msgtxt = (!Deaf)
? "You hear hissing gas." /* Deaf-aware */
: "That seemed remarkably uneventful.";
: (type >= 0)
? "That seemed remarkably uneventful."
: (const char *) 0;
if (lev->typ != POOL) { /* MOAT or DRAWBRIDGE_UP */
if (see_it)
@@ -4457,7 +4459,8 @@ short exploding_wand_typ;
if (see_it)
msgtxt = "The water evaporates.";
}
Norep("%s", msgtxt);
if (msgtxt)
Norep("%s", msgtxt);
if (lev->typ == ROOM)
newsym(x, y);
} else if (IS_FOUNTAIN(lev->typ)) {