From 93753d2f3bbd36e92bf8b1bc46f8a1775a01afa6 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 22 Feb 2008 09:13:27 +0000 Subject: Fixed some issues with the previous commit, bug #1893564 should be fixed now without affecting anything else svn-id: r30917 --- engines/agi/text.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'engines/agi') diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp index c9deef6eb0..dca745ffc5 100644 --- a/engines/agi/text.cpp +++ b/engines/agi/text.cpp @@ -600,9 +600,13 @@ void AgiEngine::writeStatus() { } if (!_game.statusLine) { - int l = _game.lineStatus + _game.lineUserInput; - clearLines(l, l, 0); - flushLines(l, l); + clearLines(_game.lineStatus, _game.lineStatus, 0); + flushLines(_game.lineStatus, _game.lineStatus); + + // Clear the user input line as well when clearing the status line + // Fixes bug #1893564 - AGI: Texts messed out in Naturette 1 + clearLines(_game.lineUserInput, _game.lineUserInput, 0); + flushLines(_game.lineUserInput, _game.lineUserInput); return; } -- cgit v1.2.3