aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sfuncs.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-08-02 14:57:18 +0000
committerFilippos Karapetis2007-08-02 14:57:18 +0000
commitccc9359181a30813321911501c9721bf8556f592 (patch)
tree8d03dec9176bf696cbe78b0ed8b09a2aec528db6 /engines/saga/sfuncs.cpp
parent3e9c4be28026a4ef3c3a790073f2a42738374819 (diff)
downloadscummvm-rg350-ccc9359181a30813321911501c9721bf8556f592.tar.gz
scummvm-rg350-ccc9359181a30813321911501c9721bf8556f592.tar.bz2
scummvm-rg350-ccc9359181a30813321911501c9721bf8556f592.zip
Text is cleared correctly in the IHNM demo help screen, when waiting for the game to change the page automatically
svn-id: r28407
Diffstat (limited to 'engines/saga/sfuncs.cpp')
-rw-r--r--engines/saga/sfuncs.cpp6
1 files 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;
}