summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 55c9379973..2d19836752 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -1490,10 +1490,7 @@ static int spell_swap_func(int x, int y, int pow, int message)
int old_y = defender->y;
if (swap_places( defender ))
- {
- you.x_pos = old_x;
- you.y_pos = old_y;
- }
+ you.moveto(old_x, old_y);
}
return 1;
@@ -3038,8 +3035,7 @@ static int quadrant_blink(int x, int y, int pow, int garbage)
break;
}
- you.x_pos = tx;
- you.y_pos = ty;
+ you.moveto(tx, ty);
return 1;
}