From 4543855eca837219e3cb69148438db628f264a67 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 26 Sep 2010 11:20:55 +0000 Subject: 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 --- engines/agi/op_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/agi/op_cmd.cpp') 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(); } -- cgit v1.2.3