summaryrefslogtreecommitdiff
path: root/src/modules.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2013-12-23 21:20:58 +0100
committerBardur Arantsson <bardur@scientician.net>2014-11-20 01:47:23 +0100
commit923c5b06fae16534385d5ac453253bbe44ed7d1d (patch)
tree2272aad977049946f9c7681f0edca2f1cf896644 /src/modules.cc
parent26024b29723d0e0c3e1922003d81b9dfef5463ba (diff)
Remove inkey_scan and inkey_xtra globals
Diffstat (limited to 'src/modules.cc')
-rw-r--r--src/modules.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules.cc b/src/modules.cc
index 059e9200..b152fa0b 100644
--- a/src/modules.cc
+++ b/src/modules.cc
@@ -317,8 +317,7 @@ static bool_ dleft(byte c, cptr str, int y, int o)
Term_redraw_section(a - 1, y, a, y);
a = a + 1;
- inkey_scan = TRUE;
- if (inkey()) {
+ if (inkey_scan()) {
return TRUE;
}
}
@@ -351,8 +350,7 @@ static bool_ dright(byte c, cptr str, int y, int o)
Term_redraw_section(a, y, a + 1, y);
a = a - 1;
- inkey_scan = TRUE;
- if (inkey()) {
+ if (inkey_scan()) {
return TRUE;
}
}
@@ -394,7 +392,6 @@ static bool_ show_intro(intro_text intro_texts[])
/* Wait for key */
Term_putch(0, 0, TERM_DARK, 32);
- inkey_scan = FALSE;
inkey();
/* Continue */