summaryrefslogtreecommitdiff
path: root/src/lua_bind.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-11 19:44:49 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-11 19:51:07 +0200
commit571ab5e1b1e20c8dc87a48a518caeee6f4e8a825 (patch)
tree61e2879f2d76209084fa748d420efd0317052c65 /src/lua_bind.c
parenteaeaf76609a894e52f12dbbd35597aebbabb113a (diff)
Lua: Move intros to C
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r--src/lua_bind.c70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c
index fd7d9cbb..a01b1fbc 100644
--- a/src/lua_bind.c
+++ b/src/lua_bind.c
@@ -542,76 +542,6 @@ int get_lua_int(cptr name)
return exec_lua(format("return %s", name));
}
-bool_ drop_text_left(byte c, cptr str, int y, int o)
-{
- int i = strlen(str);
- int x = 39 - (strlen(str) / 2) + o;
- while (i > 0)
- {
- int a = 0;
- int time = 0;
-
- if (str[i-1] != ' ')
- {
- while (a < x + i - 1)
- {
- Term_putch(a - 1, y, c, 32);
- Term_putch(a, y, c, str[i-1]);
- time = time + 1;
- if (time >= 4)
- {
- Term_xtra(TERM_XTRA_DELAY, 1);
- time = 0;
- }
- Term_redraw_section(a - 1, y, a, y);
- a = a + 1;
-
- inkey_scan = TRUE;
- if (inkey()) {
- return TRUE;
- }
- }
- }
-
- i = i - 1;
- }
- return FALSE;
-}
-
-bool_ drop_text_right(byte c, cptr str, int y, int o)
-{
- int x = 39 - (strlen(str) / 2) + o;
- int i = 1;
- while (i <= strlen(str))
- {
- int a = 79;
- int time = 0;
-
- if (str[i-1] != ' ') {
- while (a >= x + i - 1)
- {
- Term_putch(a + 1, y, c, 32);
- Term_putch(a, y, c, str[i-1]);
- time = time + 1;
- if (time >= 4) {
- Term_xtra(TERM_XTRA_DELAY, 1);
- time = 0;
- }
- Term_redraw_section(a, y, a + 1, y);
- a = a - 1;
-
- inkey_scan = TRUE;
- if (inkey()) {
- return TRUE;
- }
- }
- }
-
- i = i + 1;
- }
- return FALSE;
-}
-
void increase_mana(int delta)
{
char buf[256];