From 5cbdafd3510bb68b72f280896635f772b21e70af Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 9 Oct 2009 12:23:34 -0500 Subject: Add minor cosmetic fixes. --- crawl-ref/source/player.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/player.cc') 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)); } -- cgit v1.2.3-54-g00ecf