[Scummvm-cvs-logs] CVS: scummvm/saga sfuncs.cpp,1.86,1.87
Eugene Sandulenko
sev at users.sourceforge.net
Sun Jan 23 09:07:05 CET 2005
Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3645
Modified Files:
sfuncs.cpp
Log Message:
Reenable stub for latter demos in sfScriptGotoScene()
Index: sfuncs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sfuncs.cpp,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- sfuncs.cpp 23 Jan 2005 14:30:59 -0000 1.86
+++ sfuncs.cpp 23 Jan 2005 17:06:15 -0000 1.87
@@ -410,15 +410,12 @@
}
}
-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 @@
"boarhall.bbm"
}
};
-*/
// Script function #16 (0x10)
void Script::sfScriptGotoScene(SCRIPTFUNC_PARAMS) {
@@ -478,18 +474,20 @@
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)
More information about the Scummvm-git-logs
mailing list