summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 18:03:58 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 18:03:58 +0000
commitf9ebc8f9bd830e27d2046c72425cc3b6d9dbb7eb (patch)
treed454d9b9c19f96b8e881f49c1fdec2482860299f /crawl-ref/source/output.cc
parent6358632409aa09a9d51dc501ac53736bdf771f63 (diff)
downloadcrawl-ref-f9ebc8f9bd830e27d2046c72425cc3b6d9dbb7eb.tar.gz
crawl-ref-f9ebc8f9bd830e27d2046c72425cc3b6d9dbb7eb.zip
Apply r9964 to trunk, and documentation update.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9965 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 43176d8c9b..fd2ebd42db 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -752,10 +752,14 @@ static void _get_status_lights(std::vector<status_light>& out)
if (you.magic_contamination || you.backlit(false))
{
- int color = you.magic_contamination > 5
- ? _bad_ench_colour( you.magic_contamination, 15, 25 )
- : LIGHTBLUE;
- out.push_back(status_light(color, "Glow"));
+ int colour = LIGHTBLUE;
+ if (you.magic_contamination > 0)
+ {
+ colour = (you.magic_contamination > 5
+ ? _bad_ench_colour( you.magic_contamination, 15, 25 )
+ : DARKGREY);
+ }
+ out.push_back(status_light(colour, "Glow"));
}
if (you.duration[DUR_SWIFTNESS])