aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorFilippos Karapetis2008-04-11 17:00:29 +0000
committerFilippos Karapetis2008-04-11 17:00:29 +0000
commite2fe69ff71f2f100e19c27e5039a79152b49cca6 (patch)
treea6155bef85f547b7948a990a668fc30f05af095f /engines/agi
parentd0f46196c2a5d58e6551282faf85675014067dfd (diff)
downloadscummvm-rg350-e2fe69ff71f2f100e19c27e5039a79152b49cca6.tar.gz
scummvm-rg350-e2fe69ff71f2f100e19c27e5039a79152b49cca6.tar.bz2
scummvm-rg350-e2fe69ff71f2f100e19c27e5039a79152b49cca6.zip
Show current text prompt when the accept_input opcode is called. This, together with commit #31477 fix bugs #1875076 - "AGI GR: Input prompt not changing in outhouse" and #1939632 - "SQ2: Text prompt glitch"
svn-id: r31485
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/op_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp
index c30b5b52f7..7897b57c30 100644
--- a/engines/agi/op_cmd.cpp
+++ b/engines/agi/op_cmd.cpp
@@ -1282,6 +1282,7 @@ cmd(accept_input) {
debugC(4, kDebugLevelScripts | kDebugLevelInput, "input normal");
g_agi->newInputMode(INPUT_NORMAL);
game.inputEnabled = true;
+ g_agi->writePrompt();
}
cmd(prevent_input) {
@@ -1373,8 +1374,6 @@ cmd(set_string) {
if (p0 > MAX_STRINGS)
return;
strcpy(game.strings[p0], curLogic->texts[p1 - 1]);
- if (p0 == 0 && game.hasPrompt)
- g_agi->writePrompt();
}
cmd(display) {