summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/random.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/random.cc b/crawl-ref/source/random.cc
index bb653a4302..ade5fadb47 100644
--- a/crawl-ref/source/random.cc
+++ b/crawl-ref/source/random.cc
@@ -363,9 +363,9 @@ int fuzz_value(int val, int lowfuzz, int highfuzz, int naverage)
return val + random2avg(lfuzz + hfuzz + 1, naverage) - lfuzz;
}
-bool decimal_chance(double percent)
+bool decimal_chance(double chance)
{
- return random_real() < percent;
+ return random_real() < chance;
}
// This is used when the front-end randomness is inconclusive. There are