summaryrefslogtreecommitdiff
path: root/textscreen
diff options
context:
space:
mode:
authorSimon Howard2006-05-24 19:08:58 +0000
committerSimon Howard2006-05-24 19:08:58 +0000
commitf7bf1488d8d3f728770b6d54d7a4e126b9cdb310 (patch)
tree158672132b5c707667d410ce3c77e003c30076dc /textscreen
parent09baf6c488e70bb2089ec585ab13595a1b64d5c0 (diff)
downloadchocolate-doom-f7bf1488d8d3f728770b6d54d7a4e126b9cdb310.tar.gz
chocolate-doom-f7bf1488d8d3f728770b6d54d7a4e126b9cdb310.tar.bz2
chocolate-doom-f7bf1488d8d3f728770b6d54d7a4e126b9cdb310.zip
Only allow digits to be typed in number input boxes.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 522
Diffstat (limited to 'textscreen')
-rw-r--r--textscreen/txt_inputbox.c2
1 files changed, 1 insertions, 1 deletions
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