aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/interface.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/interface.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/interface.cpp')
-rw-r--r--engines/saga/interface.cpp21
1 files changed, 16 insertions, 5 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index 6811f5ecd0..8cfd993391 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -694,14 +694,18 @@ bool Interface::processAscii(uint16 ascii) {
} else {
// In the IHNM demo, this panel mode is set by the scripts
// to flip through the pages of the help system
- // Any keypress here returns the user back to the game
- _vm->_scene->clearPsychicProfile();
}
break;
case kPanelPlacard:
if (_vm->getGameType() == GType_IHNM) {
// Any keypress here returns the user back to the game
- _vm->_scene->clearPsychicProfile();
+ if (_vm->getGameId() != GID_IHNM_DEMO) {
+ _vm->_scene->clearPsychicProfile();
+ } else {
+ setMode(kPanelConverse);
+ _vm->_scene->_textList.clear();
+ _vm->_script->wakeUpThreads(kWaitTypeDelay);
+ }
}
break;
}
@@ -1770,8 +1774,15 @@ void Interface::update(const Point& mousePoint, int updateFlag) {
case kPanelPlacard:
if (_vm->getGameType() == GType_IHNM) {
// Any mouse click here returns the user back to the game
- if (updateFlag & UPDATE_MOUSECLICK)
- _vm->_scene->clearPsychicProfile();
+ if (updateFlag & UPDATE_MOUSECLICK) {
+ if (_vm->getGameId() != GID_IHNM_DEMO) {
+ _vm->_scene->clearPsychicProfile();
+ } else {
+ setMode(kPanelConverse);
+ _vm->_scene->_textList.clear();
+ _vm->_script->wakeUpThreads(kWaitTypeDelay);
+ }
+ }
}
break;