aboutsummaryrefslogtreecommitdiff
path: root/saga/ite_introproc.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-01-02 20:29:27 +0000
committerEugene Sandulenko2005-01-02 20:29:27 +0000
commit63be4b64350f72463965c2716e1e0cc43ade2f98 (patch)
treec3050c46246a59cb3786d471a917a1475fa52e80 /saga/ite_introproc.cpp
parent6738870568a08788acd26a5a02ee64d07600095b (diff)
downloadscummvm-rg350-63be4b64350f72463965c2716e1e0cc43ade2f98.tar.gz
scummvm-rg350-63be4b64350f72463965c2716e1e0cc43ade2f98.tar.bz2
scummvm-rg350-63be4b64350f72463965c2716e1e0cc43ade2f98.zip
o Started putting all panels stuff in order. Still incomplete
o Proper detection for Mac Wyrmkeep CD o Support for wyrmkeep logos svn-id: r16415
Diffstat (limited to 'saga/ite_introproc.cpp')
-rw-r--r--saga/ite_introproc.cpp34
1 files changed, 21 insertions, 13 deletions
diff --git a/saga/ite_introproc.cpp b/saga/ite_introproc.cpp
index 1580d4b9d1..028ed2a7dd 100644
--- a/saga/ite_introproc.cpp
+++ b/saga/ite_introproc.cpp
@@ -195,21 +195,29 @@ int Scene::ITEIntroAnimProc(int param, SCENE_INFO *scene_info) {
// Link this scene's animation resources for continuous
// playback
- _vm->_anim->link(0, 1);
- _vm->_anim->link(1, 2);
- _vm->_anim->link(2, 3);
- _vm->_anim->link(3, 4);
-
- if (_vm->_features & GF_MAC_RESOURCES)
- _vm->_anim->setFlag(4, ANIM_ENDSCENE);
- else {
- _vm->_anim->link(4, 5);
- _vm->_anim->link(5, 6);
-
- // Scene should end on display of last animation frame
- _vm->_anim->setFlag(6, ANIM_ENDSCENE);
+ int lastAnim;
+
+ if (_vm->_features & GF_WYRMKEEP) {
+ if (_vm->_features & GF_MAC_RESOURCES) {
+ lastAnim = 3;
+ } else {
+ lastAnim = 2;
+ }
+ } else {
+ if (_vm->_features & GF_MAC_RESOURCES) {
+ lastAnim = 4;
+ } else {
+ lastAnim = 5;
+ }
}
+ for (int i = 0; i < lastAnim; i++)
+ _vm->_anim->link(i, i+1);
+
+ _vm->_anim->setFlag(lastAnim, ANIM_ENDSCENE);
+
+ debug(0, "Beginning animation playback.");
+
// Begin the animation
event.type = ONESHOT_EVENT;
event.code = ANIM_EVENT;