From ccc9359181a30813321911501c9721bf8556f592 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 2 Aug 2007 14:57:18 +0000 Subject: Text is cleared correctly in the IHNM demo help screen, when waiting for the game to change the page automatically svn-id: r28407 --- engines/saga/sfuncs.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp index 16a484a056..c0e44584df 100644 --- a/engines/saga/sfuncs.cpp +++ b/engines/saga/sfuncs.cpp @@ -2000,6 +2000,8 @@ void Script::sfScriptEndVideo(SCRIPTFUNC_PARAMS) { void Script::sfShowIHNMDemoHelpBg(SCRIPTFUNC_PARAMS) { _ihnmDemoCurrentY = 0; + _vm->_scene->_textList.clear(); + _vm->_interface->setMode(kPanelConverse); _vm->_scene->showPsychicProfile(NULL); } @@ -2022,9 +2024,6 @@ void Script::sfAddIHNMDemoHelpTextLine(SCRIPTFUNC_PARAMS) { 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::sfAddIHNMDemoHelpTextLine(SCRIPTFUNC_PARAMS) { 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; } -- cgit v1.2.3