diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:55 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:55 +0100 |
commit | 06a218fc412f612da52ec780b6c2a02ff691b693 (patch) | |
tree | 741392c5fb7c58ec2d939aea3adeb43a35decdab /src/lua_bind.cc | |
parent | 692699f064b2d792b61a5aa448b6844e8c713248 (diff) |
Inline get_target() into the one extant caller
Diffstat (limited to 'src/lua_bind.cc')
-rw-r--r-- | src/lua_bind.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lua_bind.cc b/src/lua_bind.cc index 6b22e1d2..cc55d815 100644 --- a/src/lua_bind.cc +++ b/src/lua_bind.cc @@ -188,24 +188,6 @@ s32b get_level(s32b s, s32b max, s32b min) } } -void get_target(int dir, int *y, int *x) -{ - int ty, tx; - - /* Use the given direction */ - tx = p_ptr->px + (ddx[dir] * 100); - ty = p_ptr->py + (ddy[dir] * 100); - - /* Hack -- Use an actual "target" */ - if ((dir == 5) && target_okay()) - { - tx = target_col; - ty = target_row; - } - *y = ty; - *x = tx; -} - /* Level gen */ void get_map_size(const char *name, int *ysize, int *xsize) { |