summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-08 00:16:48 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-08 00:16:48 +0000
commit479b5e771117e42105de312a95e5ab73cd1a1abe (patch)
treed68480d8ddc043ff31842cc7ec4d9709a70ae949 /crawl-ref/source/beam.cc
parent4d81ea545619a0db358be8feb2c3389e37f863cc (diff)
downloadcrawl-ref-479b5e771117e42105de312a95e5ab73cd1a1abe.tar.gz
crawl-ref-479b5e771117e42105de312a95e5ab73cd1a1abe.zip
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7417 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 33e99076e4..39f87e2a24 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -3589,8 +3589,11 @@ static int _affect_player( bolt &beam, item_def *item, bool affect_items )
else
{
mpr("You feel strangely conspicuous.");
- if ((you.duration[DUR_BACKLIGHT] += random_range(3, 5)) > 250)
+
+ you.duration[DUR_BACKLIGHT] += random_range(3, 5);
+ if (you.duration[DUR_BACKLIGHT] > 250)
you.duration[DUR_BACKLIGHT] = 250;
+
beam.obvious_effect = true;
}
break;