From 220929dc9842431b65e976a20ccc38883432f7bc Mon Sep 17 00:00:00 2001 From: stpohle Date: Tue, 10 Jun 2003 21:22:17 +0000 Subject: [PATCH] Chat input text won't be deleted if the game is over or the game starts --- src/chat.c | 1 - src/configuration.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat.c b/src/chat.c index 5ab4457..ea9cadb 100644 --- a/src/chat.c +++ b/src/chat.c @@ -115,7 +115,6 @@ chat_show (int x1, int y1, int x2, int y2) chat.window.w = x2 - x1; chat.window.h = y2 - y1; chat_drawbox (); - keybinput_new (&chat.input); chat.changed = 1; chat.lineschanged = 1; } diff --git a/src/configuration.c b/src/configuration.c index 1ed6484..974ea86 100644 --- a/src/configuration.c +++ b/src/configuration.c @@ -28,6 +28,8 @@ game_init (int argc, char **argv) chat.visible = 0; chat.startline = 0; + keybinput_new (&chat.input); + for (i = 0; i < CHAT_MAX_LINES; i++) chat.lines[i][0] = 0;