summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-21 14:19:35 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-21 14:19:35 +0000
commit308d03bae861cbc312797d064efa46ac69dfd4d9 (patch)
treeb9e7a4b586f75217e7b854c36614099fc702765f
parent50f7fb61fcb4481e94bef693a4d65966e14ee1f9 (diff)
downloadcrawl-ref-308d03bae861cbc312797d064efa46ac69dfd4d9.tar.gz
crawl-ref-308d03bae861cbc312797d064efa46ac69dfd4d9.zip
[1829667]: use c_getch() to get input for all the new-game menus, since
they only get CK_* values (which c_getch(), but not getch(), returns under Unix) and single-byte characters (which c_getch() and getch() can handle as well as get_ch()); this is untested under Windows, but it should work, since the tutorial code uses the same technique git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2889 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/newgame.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index 0a89a80f41..e3f4489a46 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -1579,7 +1579,7 @@ static bool choose_book( item_def& book, int firstbook, int numbooks )
cprintf(EOL "Which book? ");
textcolor( LIGHTGREY );
- keyin = getch();
+ keyin = c_getch();
if (keyin == CK_BKSP || keyin == ' ')
return false;
@@ -1674,7 +1674,7 @@ static bool choose_weapon()
cprintf(EOL "Which weapon? ");
textcolor( LIGHTGREY );
- keyin = getch();
+ keyin = c_getch();
if (keyin == CK_BKSP || keyin == ' ')
return false;
@@ -3436,7 +3436,7 @@ bool give_items_skills()
}
getkey:
- keyn = get_ch();
+ keyn = c_getch();
if ((keyn == '\r' || keyn == '\n')
&& Options.prev_pr != GOD_NO_GOD)
@@ -4029,7 +4029,7 @@ bool give_items_skills()
}
getkey1:
- keyn = get_ch();
+ keyn = c_getch();
if ((keyn == '\r' || keyn == '\n')
&& Options.prev_dk != DK_NO_SELECTION)
@@ -4152,7 +4152,7 @@ bool give_items_skills()
getkey2:
- keyn = get_ch();
+ keyn = c_getch();
if ((keyn == '\r' || keyn == '\n')
&& Options.prev_ck != GOD_NO_GOD)