inappropriate "lamp flickers" message while blind

From a bug report.  Add missing !Blind check.
This commit is contained in:
cohrs
2006-02-05 02:06:24 +00:00
parent 72d68851e2
commit dfb1d04b6a
2 changed files with 2 additions and 0 deletions

View File

@@ -116,6 +116,7 @@ zapping unlocking magic at self while punished will remove attached chain
don't see objects or read engraving when hero changes location (random
teleport) or position (levitation timeout) while asleep or fainted
polymorphed spellbooks may turn blank or be too faint to read
avoid inappropriate message when using a cursed lamp while blind
Platform- and/or Interface-Specific Fixes

View File

@@ -1179,6 +1179,7 @@ struct obj *obj;
return;
}
if (obj->cursed && !rn2(2)) {
if (!Blind)
pline("%s for a moment, then %s.",
Tobjnam(obj, "flicker"), otense(obj, "die"));
} else {