summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r--crawl-ref/source/main.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc
index bfb63c82a6..559d377f74 100644
--- a/crawl-ref/source/main.cc
+++ b/crawl-ref/source/main.cc
@@ -2829,7 +2829,9 @@ void world_reacts()
_decrement_durations();
- const int food_use = player_hunger_rate();
+ int food_use = player_hunger_rate();
+ food_use = div_rand_round(food_use * you.time_taken, BASELINE_DELAY);
+
if (food_use > 0 && you.hunger >= 40)
make_hungry(food_use, true);