summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-06 18:31:38 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-06 18:32:23 -0600
commit28873b06f55383684e8722c6222624b2acc5e8cf (patch)
tree6dcb06eb1d2b8007272cae06bfb29d78d5b5f031
parentfd607e7aa0c17867b23f26bd607270e9f7f3927d (diff)
downloadcrawl-ref-28873b06f55383684e8722c6222624b2acc5e8cf.tar.gz
crawl-ref-28873b06f55383684e8722c6222624b2acc5e8cf.zip
Use coord_defs in one more place.
-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());
}