summaryrefslogtreecommitdiff
path: root/src/spells3.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-05-18 06:20:20 +0200
committerBardur Arantsson <bardur@scientician.net>2012-05-18 19:48:30 +0200
commit38ab9bd955e7516cdc0279dcdcf461f975fde3ef (patch)
tree4156f49c3482f99b8b09c5a87f1e5a600aba73fb /src/spells3.c
parentc1f2b8f2d299d22be4ad3f2f176b6e106eeff6dc (diff)
Lua: Move cast_school_spell() to C
Diffstat (limited to 'src/spells3.c')
-rw-r--r--src/spells3.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/spells3.c b/src/spells3.c
index b7019e0f..f83ab513 100644
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -2527,11 +2527,7 @@ void meta_inertia_control_timer_callback()
else if ((p_ptr->inertia_controlled_spell != -1) &&
(!p_ptr->wild_mode))
{
- char buf[128];
- sprintf(buf,
- "__spell_spell[" FMTs32b "]()",
- p_ptr->inertia_controlled_spell);
- exec_lua(buf);
+ lua_cast_school_spell(p_ptr->inertia_controlled_spell, TRUE);
}
}