[Scummvm-cvs-logs] SF.net SVN: scummvm: [28407] scummvm/trunk/engines/saga/sfuncs.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Aug 2 16:57:18 CEST 2007


Revision: 28407
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28407&view=rev
Author:   thebluegr
Date:     2007-08-02 07:57:18 -0700 (Thu, 02 Aug 2007)

Log Message:
-----------
Text is cleared correctly in the IHNM demo help screen, when waiting for the game to change the page automatically

Modified Paths:
--------------
    scummvm/trunk/engines/saga/sfuncs.cpp

Modified: scummvm/trunk/engines/saga/sfuncs.cpp
===================================================================
--- scummvm/trunk/engines/saga/sfuncs.cpp	2007-08-02 14:43:10 UTC (rev 28406)
+++ scummvm/trunk/engines/saga/sfuncs.cpp	2007-08-02 14:57:18 UTC (rev 28407)
@@ -2000,6 +2000,8 @@
 
 void Script::sfShowIHNMDemoHelpBg(SCRIPTFUNC_PARAMS) {
 	_ihnmDemoCurrentY = 0;
+	_vm->_scene->_textList.clear();
+	_vm->_interface->setMode(kPanelConverse);
 	_vm->_scene->showPsychicProfile(NULL);
 }
 
@@ -2022,9 +2024,6 @@
 	textEntry.flags = (FontEffectFlags)(kFontCentered);
 	textEntry.text = thread->_strings->getString(stringId);
 
-	if (_ihnmDemoCurrentY == 0)
-		_vm->_scene->_textList.clear();
-
 	TextListEntry *_psychicProfileTextEntry = _vm->_scene->_textList.addEntry(textEntry);
 
 	event.type = kEvTOneshot;
@@ -2040,7 +2039,6 @@
 void Script::sfShowIHNMDemoHelpPage(SCRIPTFUNC_PARAMS) {
 	// Note: The IHNM demo changes panel mode to 8 (kPanelProtect in ITE)
 	// when changing pages
-	_vm->_interface->setMode(kPanelConverse);
 	_vm->_interface->setMode(kPanelPlacard);
 	_ihnmDemoCurrentY = 0;
 }


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