summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-28 18:14:42 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-28 18:14:42 +0000
commit95259b9b62799b2e5fe00f8833c28b8a96879e49 (patch)
tree0aa0cf24af159eb64efdef6a587ec0997c17d966 /crawl-ref/source/acr.cc
parent990a102363ff38bf95ed78baf777f2a7ba57e62c (diff)
downloadcrawl-ref-95259b9b62799b2e5fe00f8833c28b8a96879e49.tar.gz
crawl-ref-95259b9b62799b2e5fe00f8833c28b8a96879e49.zip
[1836426] Fixed penance message sequence for beams, clamped penance messages at one per turn. (Penance message sequence for melee combat not fixed yet.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2926 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index ee535c1371..e061525409 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2747,7 +2747,8 @@ static void world_reacts()
if (you.num_turns != -1)
{
- you.num_turns++;
+ if (you.num_turns < LONG_MAX)
+ you.num_turns++;
if (env.turns_on_level < INT_MAX)
env.turns_on_level++;
update_turn_count();