1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

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

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();