summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-03-26 23:51:31 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-03-26 23:56:36 +0200
commit2c8c99fec4aab48970d75030ece87dda40260e78 (patch)
treeed687319685e936cb25b8fa046c01209c36c7525 /crawl-ref/source/notes.cc
parent01c2aa8463804cdd4ff8818b78c1deb890a78efb (diff)
parent537a8dfbb6582c8269e3239b63a5d2ea03eb77a3 (diff)
downloadcrawl-ref-2c8c99fec4aab48970d75030ece87dda40260e78.tar.gz
crawl-ref-2c8c99fec4aab48970d75030ece87dda40260e78.zip
Merge branch 'master' into portal_branches
This includes fixes for 64834896234968 places in master that add new uses of LEVEL_FOO and so on.
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index 946b5078b6..0973ce9b91 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -367,11 +367,15 @@ std::string Note::describe(bool when, bool where, bool what) const
result << "Gained mutation: "
<< mutation_name(static_cast<mutation_type>(first),
second == 0 ? 1 : second);
+ if (!name.empty())
+ result << " [" << name << "]";
break;
case NOTE_LOSE_MUTATION:
result << "Lost mutation: "
<< mutation_name(static_cast<mutation_type>(first),
second == 3 ? 3 : second+1);
+ if (!name.empty())
+ result << " [" << name << "]";
break;
case NOTE_DEATH:
result << name;