summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/main.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-07-11 11:46:30 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-07-11 11:46:30 +0100
commitf806da227c3869a1f6811bf190d140da1374f8aa (patch)
tree73d850ccc9c737e2c831f332799a7e83dc65579e /crawl-ref/source/main.cc
parent65a70f904cc3c0052d120fc36968c584bded7e84 (diff)
downloadcrawl-ref-f806da227c3869a1f6811bf190d140da1374f8aa.tar.gz
crawl-ref-f806da227c3869a1f6811bf190d140da1374f8aa.zip
Fix rounding when closing doors
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r--crawl-ref/source/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc
index 12196a80da..c6cfd12864 100644
--- a/crawl-ref/source/main.cc
+++ b/crawl-ref/source/main.cc
@@ -2944,7 +2944,7 @@ static void _close_door(coord_def move)
update_exclusion_los(excludes);
you.turn_is_over = true;
// make closing doors take longer than opening them, to end doordancing
- you.time_taken *= 1.3;
+ you.time_taken = div_rand_round(you.time_taken * 13, 10);
}
else if (you.confused())
_open_door(door_move.delta);