From a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 5 Jan 2007 23:36:35 +0000 Subject: Clear the current value when entering a new value in number input boxes. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 816 --- textscreen/txt_inputbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'textscreen/txt_inputbox.c') diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c index 33775bb1..2798cce4 100644 --- a/textscreen/txt_inputbox.c +++ b/textscreen/txt_inputbox.c @@ -175,7 +175,7 @@ static int TXT_IntInputBoxKeyPress(TXT_UNCAST_ARG(inputbox), int key) { if (key == KEY_ENTER) { - SetBufferFromValue(inputbox); + strcpy(inputbox->buffer, ""); inputbox->editing = 1; return 1; } -- cgit v1.2.3