diff options
author | Torbjörn Andersson | 2010-09-26 11:20:55 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-09-26 11:20:55 +0000 |
commit | 4543855eca837219e3cb69148438db628f264a67 (patch) | |
tree | c8c2ebe0361ab0e8dc33ee150c604b1f647f581b /engines/agi/op_cmd.cpp | |
parent | b1f63deba3afe176646dbf9aae5c22cfab453785 (diff) | |
download | scummvm-rg350-4543855eca837219e3cb69148438db628f264a67.tar.gz scummvm-rg350-4543855eca837219e3cb69148438db628f264a67.tar.bz2 scummvm-rg350-4543855eca837219e3cb69148438db628f264a67.zip |
AGI: Fix bug in cmd_cancel_line()
We have to update cursor position, not just terminate the input
buffer. This makes Ctrl-C work as intended, which fixes one half of
bug #3054184 ("SQ1 AGI: keyboard special keys are not functioning
properly"). I'm not sure if the second half actually is a bug.
svn-id: r52899
Diffstat (limited to 'engines/agi/op_cmd.cpp')
-rw-r--r-- | engines/agi/op_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index a60080186c..1627f03863 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -497,6 +497,7 @@ void AgiEngine::cmd_script_size(uint8 *p) { void AgiEngine::cmd_cancel_line(uint8 *p) { _game.inputBuffer[0] = 0; + _game.cursorPos = 0; writePrompt(); } |