summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-05-02 04:18:43 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-05-02 04:31:59 +0200
commit502ba9fcf8bb75c219ccf7bc72399b0aa9c2b603 (patch)
tree8022c99f5cab5fb211e3a322e4d9809e1ee76835 /crawl-ref/source/notes.cc
parent718399ee316f75a1f471a4878ae7e34424a7e7fa (diff)
downloadcrawl-ref-502ba9fcf8bb75c219ccf7bc72399b0aa9c2b603.tar.gz
crawl-ref-502ba9fcf8bb75c219ccf7bc72399b0aa9c2b603.zip
Make a milestone for reaching a level only if it has been just created.
Before, returning to a non-persistent level would act as if you entered it normally, and dungeon levels used to scan the whole history to avoid repeats.
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index 95988dd3b7..40a9c3cb75 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -173,15 +173,7 @@ static bool _is_noteworthy(const Note& note)
}
if (note.type == NOTE_DUNGEON_LEVEL_CHANGE)
- {
- if (!_is_noteworthy_dlevel(note.packed_place))
- return (false);
-
- level_id place = level_id::from_packed_place(note.packed_place);
- // Non-persistent places are always interesting.
- if (!is_connected_branch(place))
- return (true);
- }
+ return _is_noteworthy_dlevel(note.packed_place);
// Learning a spell is always noteworthy if note_all_spells is set.
if (note.type == NOTE_LEARN_SPELL && Options.note_all_spells)
@@ -195,11 +187,6 @@ static bool _is_noteworthy(const Note& note)
const Note& rnote(note_list[i]);
switch (note.type)
{
- case NOTE_DUNGEON_LEVEL_CHANGE:
- if (rnote.packed_place == note.packed_place)
- return (false);
- break;
-
case NOTE_LEARN_SPELL:
if (spell_difficulty(static_cast<spell_type>(rnote.first))
>= spell_difficulty(static_cast<spell_type>(note.first)))