[Scummvm-cvs-logs] SF.net SVN: scummvm:[50449] scummvm/trunk/gui/console.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Mon Jun 28 18:09:54 CEST 2010


Revision: 50449
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50449&view=rev
Author:   m_kiewitz
Date:     2010-06-28 16:09:54 +0000 (Mon, 28 Jun 2010)

Log Message:
-----------
common console: also show prompt, if the engine wrote onto gui console since last call - fixes sci breakpoints

Modified Paths:
--------------
    scummvm/trunk/gui/console.cpp

Modified: scummvm/trunk/gui/console.cpp
===================================================================
--- scummvm/trunk/gui/console.cpp	2010-06-28 15:17:10 UTC (rev 50448)
+++ scummvm/trunk/gui/console.cpp	2010-06-28 16:09:54 UTC (rev 50449)
@@ -156,7 +156,9 @@
 	_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;
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list