summaryrefslogtreecommitdiff
path: root/src/q_library.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-05-15 21:29:50 +0200
committerBardur Arantsson <bardur@scientician.net>2012-05-16 06:03:31 +0200
commit7c95b69311bcbadb84fba499584fe721612ca144 (patch)
tree95f0880109e7728b07b02740138751ae232c1bb2 /src/q_library.c
parentb446c8368b172aa29d312cf7eeca5e8547e73c81 (diff)
Lua: Move 'print_spell_desc' and 'spell_x' to C
Diffstat (limited to 'src/q_library.c')
-rw-r--r--src/q_library.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/q_library.c b/src/q_library.c
index 7ccbd9cf..0c4ad5e3 100644
--- a/src/q_library.c
+++ b/src/q_library.c
@@ -140,10 +140,6 @@ static int library_quest_print_spell(int color, int row, int spell) {
return exec_lua(format("library_quest.print_spell(%d,%d,%d)", color, row, spell));
}
-static int library_quest_print_spell_desc(int s, int y) {
- return exec_lua(format("print_spell_desc(%d, %d)", s, y));
-}
-
static void quest_library_finalize_book()
{
int i = 0;
@@ -270,7 +266,7 @@ static void library_quest_fill_book()
} else if (ch == 'p') {
current = current - height;
} else if (ch == 'I') {
- library_quest_print_spell_desc(spell_idx, 0);
+ print_spell_desc(spell_idx, 0);
inkey();
} else if (dir == 2) {
current = current + 1;