summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lua_bind.cc7
-rw-r--r--src/spells3.cc6
2 files changed, 5 insertions, 8 deletions
diff --git a/src/lua_bind.cc b/src/lua_bind.cc
index d50a37d4..36d378f2 100644
--- a/src/lua_bind.cc
+++ b/src/lua_bind.cc
@@ -172,13 +172,6 @@ s32b get_level(s32b s, s32b max, s32b min)
}
}
-void set_target(int y, int x)
-{
- target_who = -1;
- target_col = x;
- target_row = y;
-}
-
void get_target(int dir, int *y, int *x)
{
int ty, tx;
diff --git a/src/spells3.cc b/src/spells3.cc
index d6e14172..e4f3bfcd 100644
--- a/src/spells3.cc
+++ b/src/spells3.cc
@@ -492,7 +492,11 @@ casting_result convey_recall(int item)
}
else if (c_ptr->o_idx > 0)
{
- set_target(y, x);
+ // Set the target
+ target_who = -1;
+ target_col = x;
+ target_row = y;
+ // Fetch item
if (get_level_s(RECALL, 50) >= 15)
{
fetch(5, 10 + get_level_s(RECALL, 150), FALSE);