]> granicus.if.org Git - nethack/commitdiff
tearing spellbooks while confused
authorcohrs <cohrs>
Wed, 21 Aug 2002 16:42:10 +0000 (16:42 +0000)
committercohrs <cohrs>
Wed, 21 Aug 2002 16:42:10 +0000 (16:42 +0000)
Reported to the newsgroup, the code in study_book for the effect of
confusion on studying a book was never reached.  Removed the deprecated
check from read.c

doc/fixes34.1
src/read.c

index ac7d48080a21a32df9b128587494c31cbcef72d6..42ee888ae2ee7ad509e75eead6a53c526121b948 100644 (file)
@@ -211,6 +211,7 @@ rolling boulder hitting monster stuck in pit should stop even when mon survives
 don't see chest trap gas colors while Blind
 adjust fruit name in potion juice messages if it has the form "foo of bar"
 wielded camera passes harmlessly through shade
+reading spellbooks while confused should allow tearing the book
 
 
 Platform- and/or Interface-Specific Fixes
index b266256479ba65d52bffc2eb7963440e5e6c5b00..d72cb37497c6c3cd8ee940c7f4dde364de51ec53 100644 (file)
@@ -127,11 +127,7 @@ doread()
        if (scroll->otyp == SCR_MAIL) confused = FALSE;
 #endif
        if(scroll->oclass == SPBOOK_CLASS) {
-           if(confused) {
-               You("cannot grasp the meaning of this tome.");
-               return(0);
-           } else
-               return(study_book(scroll));
+           return(study_book(scroll));
        }
        scroll->in_use = TRUE;  /* scroll, not spellbook, now being read */
        if(scroll->otyp != SCR_BLANK_PAPER) {