]> granicus.if.org Git - nethack/commitdiff
inappropriate "lamp flickers" message while blind
authorcohrs <cohrs>
Sun, 5 Feb 2006 02:06:24 +0000 (02:06 +0000)
committercohrs <cohrs>
Sun, 5 Feb 2006 02:06:24 +0000 (02:06 +0000)
From a bug report.  Add missing !Blind check.

doc/fixes35.0
src/apply.c

index 319252efd752dcc9076cdbd43c75be7689a11189..75b7166c9d6bfe0bff2a61535461905a38b80708 100644 (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
index 1f5d2babd42255ef998c33adfb30b0ccd9d173f0..5427a5102718fff29b0d1d2a4fdc4225a1af3494 100644 (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 {