Skip to content

Commit

Permalink
inappropriate "lamp flickers" message while blind
Browse files Browse the repository at this point in the history
From a bug report.  Add missing !Blind check.
  • Loading branch information
cohrs committed Feb 5, 2006
1 parent 72d6885 commit dfb1d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/fixes35.0
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dfb1d04

Please sign in to comment.