summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index bf8167dcab..7d9a427909 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -735,7 +735,7 @@ static void _apply_corruption_effect( map_marker *marker, int duration)
for (int i = 0; i < neffects; ++i)
{
- if (random2(4000) < cmark->duration
+ if (x_chance_in_y(cmark->duration, 4000)
&& !_spawn_corrupted_servant_near(cmark->pos))
{
break;