summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-09 12:23:34 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-09 12:23:34 -0500
commit5cbdafd3510bb68b72f280896635f772b21e70af (patch)
tree2b34a7d41181f603c58d8988295c09fc5935ac13 /crawl-ref/source/player.cc
parentb3a51db253f5bcaeb1656c9901ade112d788e0b1 (diff)
downloadcrawl-ref-5cbdafd3510bb68b72f280896635f772b21e70af.tar.gz
crawl-ref-5cbdafd3510bb68b72f280896635f772b21e70af.zip
Add minor cosmetic fixes.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 72bf5841b7..3f31de9ebc 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -5284,15 +5284,15 @@ int get_contamination_level()
if (glow > 60)
return (glow / 20 + 2);
if (glow > 40)
- return 4;
+ return (4);
if (glow > 25)
- return 3;
+ return (3);
if (glow > 15)
- return 2;
+ return (2);
if (glow > 5)
- return 1;
+ return (1);
- return 0;
+ return (0);
}
// controlled is true if the player actively did something to cause
@@ -7320,7 +7320,7 @@ bool player::can_see(const actor *target) const
bool player::backlit(bool check_haloed) const
{
- return (get_contamination_level() >= 1 || duration[DUR_BACKLIGHT]
+ return (get_contamination_level() > 0 || duration[DUR_BACKLIGHT]
|| (check_haloed ? haloed() : false));
}