Fix executed statement not written to in game console

This commit is contained in:
Ted John 2018-03-22 20:35:52 +00:00
parent 4babfa2479
commit 85031f2b9a
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ void InGameConsole::Input(CONSOLE_INPUT input)
case CONSOLE_INPUT_LINE_EXECUTE:
if (_consoleCurrentLine[0] != '\0') {
HistoryAdd(_consoleCurrentLine);
// Append text we are executing to prompt line
_consoleLines.back().append(_consoleCurrentLine);
Execute(_consoleCurrentLine);
WritePrompt();
ClearInput();