commit f7bf1488d8d3f728770b6d54d7a4e126b9cdb310
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Wed May 24 19:08:58 2006 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Wed May 24 19:08:58 2006 +0000
Only allow digits to be typed in number input boxes.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 522
---
textscreen/txt_inputbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c
index 79c9e90e..11029e4b 100644
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -170,7 +170,7 @@ static int TXT_IntInputBoxKeyPress(TXT_UNCAST_ARG(inputbox), int key)
inputbox->editing = 0;
}
- if (isprint(key))
+ if (isdigit(key))
{
// Add character to the buffer