Skip to content

Commit

Permalink
WAGE: Fake input text when using shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 24, 2017
1 parent 78ed19d commit 59bc702
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions engines/wage/gui.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 59bc702

Please sign in to comment.