diff options
author | Simon Howard | 2006-05-24 19:08:58 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-24 19:08:58 +0000 |
commit | f7bf1488d8d3f728770b6d54d7a4e126b9cdb310 (patch) | |
tree | 158672132b5c707667d410ce3c77e003c30076dc /textscreen | |
parent | 09baf6c488e70bb2089ec585ab13595a1b64d5c0 (diff) | |
download | chocolate-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.c | 2 |
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 |