aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/scene.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-08-02 14:43:10 +0000
committerFilippos Karapetis2007-08-02 14:43:10 +0000
commit3e9c4be28026a4ef3c3a790073f2a42738374819 (patch)
treecd51ad17ef09d06c7be1a6fec84aa542039468b9 /engines/saga/scene.cpp
parentaf16be07a1dad35993d06056cf072b03ee5c63e9 (diff)
downloadscummvm-rg350-3e9c4be28026a4ef3c3a790073f2a42738374819.tar.gz
scummvm-rg350-3e9c4be28026a4ef3c3a790073f2a42738374819.tar.bz2
scummvm-rg350-3e9c4be28026a4ef3c3a790073f2a42738374819.zip
The help screen in the IHNM demo is shown correctly now
svn-id: r28406
Diffstat (limited to 'engines/saga/scene.cpp')
-rw-r--r--engines/saga/scene.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/saga/scene.cpp b/engines/saga/scene.cpp
index 3ae0e9c950..c49fe546ee 100644
--- a/engines/saga/scene.cpp
+++ b/engines/saga/scene.cpp
@@ -1411,6 +1411,8 @@ void Scene::showPsychicProfile(const char *text) {
q_event = _vm->_events->chain(q_event, &event);
+ _vm->_scene->_textList.clear();
+
if (text != NULL) {
textHeight = _vm->_font->getHeight(kKnownFontVerb, text, 226, kFontCentered);
@@ -1424,7 +1426,6 @@ void Scene::showPsychicProfile(const char *text) {
textEntry.flags = (FontEffectFlags)(kFontCentered);
textEntry.text = text;
- _vm->_scene->_textList.clear();
TextListEntry *_psychicProfileTextEntry = _vm->_scene->_textList.addEntry(textEntry);
event.type = kEvTOneshot;
@@ -1455,8 +1456,9 @@ void Scene::showPsychicProfile(const char *text) {
}
void Scene::clearPsychicProfile() {
- if (_vm->_interface->getMode() == kPanelPlacard) {
+ if (_vm->_interface->getMode() == kPanelPlacard || _vm->getGameId() == GID_IHNM_DEMO) {
_vm->_scene->clearPlacard();
+ _vm->_scene->_textList.clear();
_vm->_actor->showActors(false);
_vm->_gfx->restorePalette();
_vm->_scene->restoreScene();