summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-06-03 14:11:01 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-06-03 14:11:01 -0400
commit9c3079238cf3df88a7676a79011d5922bc161d61 (patch)
tree70da6a5ee3967b63d3cdd2d670dc3d0e866c6259 /crawl-ref/source/output.cc
parent9865e3c832263d3fb70204a628d0f0498866dcad (diff)
downloadcrawl-ref-9c3079238cf3df88a7676a79011d5922bc161d61.tar.gz
crawl-ref-9c3079238cf3df88a7676a79011d5922bc161d61.zip
Revert "Replace some you.mutaiton[] calls with player_mutation_level()"
This reverts commit 51bfb8de72b7fe848c31fa6ce10e2c94b959eb64. It turns out player_mutation_level() is not just a wrapper for you.mutation, so this could cause some odd bugs like being transformed influencing acquirement or not properly updating saves, it's probably best to just reapply places where we know the usage is correct.
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index dd91f25ead..a69ceeed15 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -2683,8 +2683,7 @@ static string _status_mut_abilities(int sw)
string current;
for (unsigned i = 0; i < NUM_MUTATIONS; ++i)
{
- mutation_type mut = static_cast<mutation_type>(i);
- if (!player_mutation_level(mut))
+ if (!you.mutation[i])
continue;
int level = player_mutation_level((mutation_type) i);