]> granicus.if.org Git - nethack/commitdiff
Lenses don't help when you're blind.
authorwarwick <warwick>
Fri, 18 Jan 2002 01:38:35 +0000 (01:38 +0000)
committerwarwick <warwick>
Fri, 18 Jan 2002 01:38:35 +0000 (01:38 +0000)
This is a tweak to <Someone>'s lens patch.

src/detect.c

index 6015065aedce7037b5a2567a600de69097ef8dbf..c77c6e612644dcbb23f214139db0201fe9d61bce 100644 (file)
@@ -1116,7 +1116,7 @@ register int aflag;
            int fund = (uwep && uwep->oartifact &&
                    spec_ability(uwep, SPFX_SEARCH)) ?
                    uwep->spe : 0;
-           if (ublindf && ublindf->otyp == LENSES)
+           if (ublindf && ublindf->otyp == LENSES && !Blind)
                    fund += 2; /* JDS: lenses help searching */
            if (fund > 5) fund = 5;
            for(x = u.ux-1; x < u.ux+2; x++)