WAGE: Fake input text when using shortcuts

This commit is contained in:
Eugene Sandulenko 2017-08-24 08:44:08 +02:00
parent 78ed19d429
commit 59bc70299e

View File

@ -278,10 +278,17 @@ void Gui::executeMenuCommand(int action, Common::String &text) {
actionClear();
break;
case kMenuActionCommand:
_engine->processTurn(&text, NULL);
break;
case kMenuActionCommand: {
_engine->_inputText = text;
Common::String inp = text + '\n';
appendText(inp.c_str());
_consoleWindow->clearInput();
_engine->processTurn(&text, NULL);
break;
}
default:
warning("Unknown action: %d", action);