diff options
-rw-r--r-- | src/externs.h | 2 | ||||
-rw-r--r-- | src/lua_bind.cc | 15 | ||||
-rw-r--r-- | src/spells3.cc | 11 |
3 files changed, 11 insertions, 17 deletions
diff --git a/src/externs.h b/src/externs.h index 5d40a471..3ee2ada9 100644 --- a/src/externs.h +++ b/src/externs.h @@ -2210,8 +2210,6 @@ extern int find_module(cptr name); extern s16b add_new_power(cptr name, cptr desc, cptr gain, cptr lose, byte level, byte cost, byte stat, byte diff); -extern void find_position(int y, int x, int *yy, int *xx); - extern s32b lua_get_level(spell_type *spell, s32b lvl, s32b max, s32b min, s32b bonus); extern s32b get_level_device(s32b s, s32b max, s32b min); extern int get_mana(s32b s); diff --git a/src/lua_bind.cc b/src/lua_bind.cc index f5758415..d50a37d4 100644 --- a/src/lua_bind.cc +++ b/src/lua_bind.cc @@ -18,21 +18,6 @@ #include "range.h" /* - * Monsters - */ - -void find_position(int y, int x, int *yy, int *xx) -{ - int attempts = 500; - - do - { - scatter(yy, xx, y, x, 6); - } - while (!(in_bounds(*yy, *xx) && cave_floor_bold(*yy, *xx)) && --attempts); -} - -/* * Misc */ diff --git a/src/spells3.cc b/src/spells3.cc index 056d3de6..d6e14172 100644 --- a/src/spells3.cc +++ b/src/spells3.cc @@ -177,6 +177,17 @@ s32b get_level_s(int sp, int max) return get_level(sp, max, 1); } +static void find_position(int y, int x, int *yy, int *xx) +{ + int attempts = 500; + + do + { + scatter(yy, xx, y, x, 6); + } + while (!(in_bounds(*yy, *xx) && cave_floor_bold(*yy, *xx)) && --attempts); +} + static casting_result cast(bool_ effect) { return effect ? CAST_OBVIOUS : CAST_HIDDEN; |