Chat input text won't be deleted if the game is over or the game starts

origin
stpohle 23 years ago
parent 832a292f0a
commit 220929dc98

@ -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;
}

@ -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;

Loading…
Cancel
Save