tearing spellbooks while confused

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
This commit is contained in:
cohrs
2002-08-21 16:42:10 +00:00
parent 2697615bd3
commit aedda43f38
2 changed files with 2 additions and 5 deletions

View 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

View 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) {