summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/acr.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 5c58d312f7..84913e1791 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -3378,10 +3378,7 @@ static void _close_door(coord_def move)
if (you.confused() && !one_chance_in(3))
{
do
- {
- door_move.delta.x = random2(3) - 1;
- door_move.delta.y = random2(3) - 1;
- }
+ door_move.delta = coord_def(random2(3) - 1, random2(3) - 1);
while (door_move.delta.origin());
}