summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-23 18:03:39 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 18:09:16 +0100
commitb64182371884b077d44a038a51d646d7ec8ff3c8 (patch)
tree3676f7eed9566a024a722dd16ee8175a303dc2dd
parent2f608b62a84d7258810824b6f91e29110365cd78 (diff)
Inline set_target into convey_recall() in spells3.cc
-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);