From f7bf1488d8d3f728770b6d54d7a4e126b9cdb310 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 24 May 2006 19:08:58 +0000 Subject: 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(-) (limited to 'textscreen') 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 -- cgit v1.2.3