diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-30 15:49:18 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-30 15:49:18 +0000 |
commit | fd34c17a54e69fa53b0b6ae7123fdbd60e6303f7 (patch) | |
tree | 01846cf5096208daf13e1005b38647afe6676409 /crawl-ref/source/notes.cc | |
parent | 34cc3ee5d9832be20c635849dc592611c4697f2c (diff) | |
download | crawl-ref-fd34c17a54e69fa53b0b6ae7123fdbd60e6303f7.tar.gz crawl-ref-fd34c17a54e69fa53b0b6ae7123fdbd60e6303f7.zip |
[1742338] Fixed Hell portals not being revealed correctly when the horn is
sounded.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1701 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r-- | crawl-ref/source/notes.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc index 7b21af98e1..9b6050c9d0 100644 --- a/crawl-ref/source/notes.cc +++ b/crawl-ref/source/notes.cc @@ -113,8 +113,7 @@ static bool is_noteworthy( const Note& note ) return true; /* never noteworthy, hooked up for fun or future use */ - if ( note.type == NOTE_GET_ITEM || - note.type == NOTE_MP_CHANGE || + if ( note.type == NOTE_MP_CHANGE || note.type == NOTE_MAXHP_CHANGE || note.type == NOTE_MAXMP_CHANGE ) return false; @@ -177,6 +176,7 @@ static bool is_noteworthy( const Note& note ) return false; break; case NOTE_ID_ITEM: + case NOTE_GET_ITEM: /* re-id'ing an item, e.g. second copy of book, isn't noteworthy */ if ( rnote.name == note.name ) @@ -190,10 +190,10 @@ static bool is_noteworthy( const Note& note ) return false; break; default: - mpr("Buggy note passed: unknown note type"); - // Return now, rather than give a "Buggy note passed" message - // for each note of the matching type in the note list. - return true; + mpr("Buggy note passed: unknown note type"); + // Return now, rather than give a "Buggy note passed" message + // for each note of the matching type in the note list. + return true; } } return true; @@ -340,7 +340,8 @@ Note::Note( NOTE_TYPES t, int f, int s, const char* n, const char* d ) : void Note::check_milestone() const { #ifdef DGL_MILESTONES - if (type == NOTE_DUNGEON_LEVEL_CHANGE) { + if (type == NOTE_DUNGEON_LEVEL_CHANGE) + { const int br = place_branch(packed_place), dep = place_depth(packed_place); |