diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 15cb592619..aa308bf8d5 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -2852,7 +2852,7 @@ void forget_map(unsigned char chance_forgotten, bool force) for (unsigned char ycount = 0; ycount < GYM; ycount++) { if (!see_grid(xcount, ycount) - && (force || random2(100) < chance_forgotten)) + && (force || x_chance_in_y(chance_forgotten, 100))) { env.map[xcount][ycount].clear(); } @@ -6733,7 +6733,7 @@ void player::awake() void player::check_awaken(int disturbance) { - if (asleep() && random2(50) <= disturbance) + if (asleep() && x_chance_in_y(disturbance + 1, 50)) awake(); } |