summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 2cc5d71c2b..44cf3b53c6 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -2425,6 +2425,10 @@ void start_travel(int x, int y)
if (x == you.x_pos && y == you.y_pos)
return ;
+ // Remember where we're going so we can easily go back if interrupted.
+ you.travel_x = x;
+ you.travel_y = y;
+
if (!i_feel_safe(true))
return;
@@ -2433,10 +2437,6 @@ void start_travel(int x, int y)
you.running.x = x;
you.running.y = y;
- // Remember where we're going so we can easily go back if interrupted.
- you.travel_x = x;
- you.travel_y = y;
-
// Check whether we can get to the square.
find_travel_pos(you.x_pos, you.y_pos, NULL, NULL, NULL);