diff options
author | Martin Kiewitz | 2010-06-28 16:09:54 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-06-28 16:09:54 +0000 |
commit | 0a58cdb6e96387eee2853a2cb9c72494cf816b1c (patch) | |
tree | 865cb10750ae46442b93eb06f88400a71375b5e1 | |
parent | 0e7ccb896dafb69664fb313c63bdb8fbe0ea82d1 (diff) | |
download | scummvm-rg350-0a58cdb6e96387eee2853a2cb9c72494cf816b1c.tar.gz scummvm-rg350-0a58cdb6e96387eee2853a2cb9c72494cf816b1c.tar.bz2 scummvm-rg350-0a58cdb6e96387eee2853a2cb9c72494cf816b1c.zip |
common console: also show prompt, if the engine wrote onto gui console since last call - fixes sci breakpoints
svn-id: r50449
-rw-r--r-- | gui/console.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 37d3bd6aa5..a2aa56f5b3 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -156,7 +156,9 @@ void ConsoleDialog::open() { _slideMode = kDownSlideMode; Dialog::open(); - if (_promptStartPos == -1) { + if ((_promptStartPos == -1) || (_currentPos > _promptEndPos)) { + // we print a prompt, if this is the first time we are called or if the + // engine wrote onto us since the last call print(PROMPT); _promptStartPos = _promptEndPos = _currentPos; } |