From b64182371884b077d44a038a51d646d7ec8ff3c8 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 23 Dec 2014 18:03:39 +0100 Subject: Inline set_target into convey_recall() in spells3.cc --- src/lua_bind.cc | 7 ------- src/spells3.cc | 6 +++++- 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); -- cgit v1.2.3