1981 C really sucked.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 6 Apr 2013 21:43:41 +0000 (23:43 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 6 Apr 2013 21:43:41 +0000 (23:43 +0200)
rip.c
rogue.h
things.c

diff --git a/rip.c b/rip.c
index 1e2250d01db3daf78246dbe2746ef85133f86c02..7d3962116d885c92ed98eef0db236413e7bf06a6 100644 (file)
--- a/rip.c
+++ b/rip.c
@@ -313,7 +313,7 @@ char monster;
 \r
     mvaddstr(LINES - 1, 0, "--Press space to continue--");\r
     refresh();\r
-    wait_for(' ');\r
+    wait_for(cw, ' ');\r
     clear();\r
     mvaddstr(0, 0, "   Worth  Item");\r
     oldpurse = purse;\r
diff --git a/rogue.h b/rogue.h
index 5edf336cf22ba5815b8c3361524d351205982cdd..674be7317a8c560dad2fcb2e7d89253e5c79b3ae 100644 (file)
--- a/rogue.h
+++ b/rogue.h
@@ -513,6 +513,10 @@ char *tr_name(), *new();
 char *charge_str(),*vowelstr(), *inv_name();\r
 char *ctime(), *num(), *ring_num();\r
 \r
+int readchar(WINDOW *win);\r
+int md_readchar(WINDOW *win);\r
+int wait_for(WINDOW *win, register char ch);\r
+\r
 struct room *roomin();\r
 \r
 coord *rndmove();\r
index ee08f265d713f7cd0690d900199a98d5d88ca240..04e55e0b002cf942bc1350cd546e9f70ef226fcc 100644 (file)
--- a/things.c
+++ b/things.c
@@ -348,7 +348,7 @@ new_thing()
            fix_stick(cur);\r
        otherwise:\r
            debug("Picked a bad kind of object");\r
-           wait_for(' ');\r
+           wait_for(cw, ' ');\r
     }\r
     return item;\r
 }\r