summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-21 15:16:15 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-21 15:16:15 +0000
commita0fc101bb8397b81ccd9cf5c1137764e14c57e89 (patch)
tree43de33e541d4274cc6787ad53571730ca8f91224 /crawl-ref/source/notes.cc
parentd5efde9cb99ea1e17d8e7f80e865dd1cacc37149 (diff)
downloadcrawl-ref-a0fc101bb8397b81ccd9cf5c1137764e14c57e89.tar.gz
crawl-ref-a0fc101bb8397b81ccd9cf5c1137764e14c57e89.zip
Fixed note taking (NOTE_HP_CHANGE) for invisible monsters
(bug 1786776) and in general (wasn't working). Also tweaked tutorial message on burning spellbooks (Bug 1799350). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2174 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index c675b30639..e92c71ff3d 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -130,7 +130,9 @@ static bool is_noteworthy( const Note& note )
/* hp noteworthiness is handled in its own function */
if ( note.type == NOTE_HP_CHANGE &&
!is_noteworthy_hp(note.first, note.second) )
+ {
return false;
+ }
/* skills are noteworthy if in the skill value list or if
it's a new maximal skill (depending on options) */