aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/gui.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index ffc4e41e66..7d1014b913 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -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);