aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/supernova/rooms.cpp6
-rw-r--r--engines/supernova/state.cpp6
2 files changed, 4 insertions, 8 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp
index dc30d40fb0..743a80b888 100644
--- a/engines/supernova/rooms.cpp
+++ b/engines/supernova/rooms.cpp
@@ -2423,10 +2423,8 @@ bool AxacussOffice1::interact(Action verb, Object &obj1, Object &obj2) {
!obj1.hasProperty(OPENED)) {
_vm->renderMessage("Welche Zahlenkombination willst|du eingeben?");
_vm->renderBox(160, 70, 70, 10, kColorDarkBlue);
- do
- _gm->edit(input, 161, 71, 10);
- while ((_gm->_key.keycode != Common::KEYCODE_ESCAPE) &&
- (_gm->_key.keycode != Common::KEYCODE_RETURN));
+ _gm->edit(input, 161, 71, 10);
+
_vm->removeMessage();
if (_gm->_key.keycode != Common::KEYCODE_ESCAPE) {
if (!input.equals("89814")) {
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index 7cfd1b4e0e..98230c2fb8 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -1256,10 +1256,8 @@ bool GameManager::genericInteract(Action verb, Object &obj1, Object &obj2) {
// TODO: Adjust for msec time instead of ticks
do {
_vm->renderBox(91, 99, 138, 9, kColorDarkBlue);
- do {
- edit(input, 91, 100, 5);
- } while ((_key.keycode != Common::KEYCODE_RETURN) &&
- (_key.keycode != Common::KEYCODE_ESCAPE));
+ edit(input, 91, 100, 5);
+
f = false;
if (t[0] == ':') {
t[0] = 0;