forked from mirror/OpenTTD
(svn r6835) - Fix: Pressing ^D (EOF) at a dedicated console caused it to repeat the last command, instead of doing nothing.
This commit is contained in:
@@ -195,7 +195,7 @@ static void DedicatedHandleKeyInput(void)
|
|||||||
if (_exit_game) return;
|
if (_exit_game) return;
|
||||||
|
|
||||||
#if defined(UNIX) || defined(__OS2__)
|
#if defined(UNIX) || defined(__OS2__)
|
||||||
fgets(input_line, lengthof(input_line), stdin);
|
if (fgets(input_line, lengthof(input_line), stdin) == NULL) return;
|
||||||
#else
|
#else
|
||||||
/* Handle console input, and singal console thread, it can accept input again */
|
/* Handle console input, and singal console thread, it can accept input again */
|
||||||
strncpy(input_line, _win_console_thread_buffer, lengthof(input_line));
|
strncpy(input_line, _win_console_thread_buffer, lengthof(input_line));
|
||||||
|
Reference in New Issue
Block a user