summaryrefslogtreecommitdiff
path: root/textscreen/txt_inputbox.c
diff options
context:
space:
mode:
authorSimon Howard2007-01-05 23:36:35 +0000
committerSimon Howard2007-01-05 23:36:35 +0000
commita64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1 (patch)
tree60515d4e2b471d1294096617fc1ff9067c53b82c /textscreen/txt_inputbox.c
parent8ac5ecc67a9352810c4db22b11e536fc176fc8ab (diff)
downloadchocolate-doom-a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1.tar.gz
chocolate-doom-a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1.tar.bz2
chocolate-doom-a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1.zip
Clear the current value when entering a new value in number input boxes.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 816
Diffstat (limited to 'textscreen/txt_inputbox.c')
-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 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;
}