1
0
Fork 0

(svn r6835) - Fix: Pressing ^D (EOF) at a dedicated console caused it to repeat the last command, instead of doing nothing.

release/0.5
peter1138 2006-10-19 09:39:29 +00:00
parent 7c99e38c60
commit fde4bf4cca
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ static void DedicatedHandleKeyInput(void)
if (_exit_game) return;
#if defined(UNIX) || defined(__OS2__)
fgets(input_line, lengthof(input_line), stdin);
if (fgets(input_line, lengthof(input_line), stdin) == NULL) return;
#else
/* Handle console input, and singal console thread, it can accept input again */
strncpy(input_line, _win_console_thread_buffer, lengthof(input_line));