aboutsummaryrefslogtreecommitdiff
path: root/saga/sfuncs.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-01-23 17:06:15 +0000
committerEugene Sandulenko2005-01-23 17:06:15 +0000
commitb646d63dad9fdd86fe7a989dff2e586891ee76b1 (patch)
tree56176fe82fd4f1fa7b65225321f0c6d46906febb /saga/sfuncs.cpp
parent8f51510deca23e98bf1625cd174b1dbcefa02a82 (diff)
downloadscummvm-rg350-b646d63dad9fdd86fe7a989dff2e586891ee76b1.tar.gz
scummvm-rg350-b646d63dad9fdd86fe7a989dff2e586891ee76b1.tar.bz2
scummvm-rg350-b646d63dad9fdd86fe7a989dff2e586891ee76b1.zip
Reenable stub for latter demos in sfScriptGotoScene()
svn-id: r16623
Diffstat (limited to 'saga/sfuncs.cpp')
-rw-r--r--saga/sfuncs.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp
index d012901722..40ad454a2f 100644
--- a/saga/sfuncs.cpp
+++ b/saga/sfuncs.cpp
@@ -410,15 +410,12 @@ void Script::sfSetFollower(SCRIPTFUNC_PARAMS) {
}
}
-struct SceneSubstitutes {
+static struct SceneSubstitutes {
int sceneId;
const char *message;
const char *name;
const char *image;
-};
-
-/*
-static SceneSubstitutes sceneSubstitutes[] = {
+} sceneSubstitutes[] = {
{
7,
"Tycho says he knows much about the northern lands. Can Rif convince "
@@ -466,7 +463,6 @@ static SceneSubstitutes sceneSubstitutes[] = {
"boarhall.bbm"
}
};
-*/
// Script function #16 (0x10)
void Script::sfScriptGotoScene(SCRIPTFUNC_PARAMS) {
@@ -478,18 +474,20 @@ void Script::sfScriptGotoScene(SCRIPTFUNC_PARAMS) {
if (sceneNumber < 0) {
//TODO: quit from game at all
}
-
+
+ // This is used for latter demos where all places on world map except
+ // Tent Faire are substituted with LBM picture and short description
+ // TODO: implement
+ for (int i = 0; i < ARRAYSIZE(sceneSubstitutes); i++)
+ if (sceneSubstitutes[i].sceneId == sceneNumber)
+ debug(0, "Scene %d substitute exists", sceneNumber);
+
// _vm->_scene->loadScene(sceneNumber, BY_SCENE, _vm->_scene->SC_defaultScene, NULL, (sceneNumber = RID_ITE_ENDCREDIT_SCENE_1) ? SCENE_FADE : SCENE_NOFADE, entrance);
//TODO: placard stuff
_pendingVerb = kVerbNone;
_currentObject[0] = _currentObject[1] = ID_NOTHING;
showVerb();
-/* for (int i = 0; i < ARRAYSIZE(sceneSubstitutes); i++)
- if (sceneSubstitutes[i].sceneId == sceneNum)
- debug(0, "Scene %d substitute exists", sceneNum);
-
- debug(1, "stub: SF_gotoScene(%d, %d)", sceneNum, entrance);*/
}
// Script function #17 (0x11)