[Scummvm-cvs-logs] SF.net SVN: scummvm:[46833] scummvm/trunk/engines/sci/engine/kgraphics.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Jan 1 16:35:28 CET 2010
Revision: 46833
http://scummvm.svn.sourceforge.net/scummvm/?rev=46833&view=rev
Author: thebluegr
Date: 2010-01-01 15:35:27 +0000 (Fri, 01 Jan 2010)
Log Message:
-----------
Added a comment for the reason updateSci0Cues() is called within kAnimate()
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2010-01-01 15:35:12 UTC (rev 46832)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2010-01-01 15:35:27 UTC (rev 46833)
@@ -959,12 +959,18 @@
reg_t castListReference = (argc > 0) ? argv[0] : NULL_REG;
bool cycle = (argc > 1) ? ((argv[1].toUint16()) ? true : false) : false;
+#ifdef USE_OLD_MUSIC_FUNCTIONS
// Take care of incoming events (kAnimate is called semi-regularly)
-#ifdef USE_OLD_MUSIC_FUNCTIONS
process_sound_events(s);
#else
- if (s->detectDoSoundType() <= SCI_VERSION_0_LATE)
+ if (s->detectDoSoundType() <= SCI_VERSION_0_LATE) {
+ // If we're running a SCI0 game, update the sound cues, to compensate
+ // for the fact that SCI0 does not poll to update the sound cues itself,
+ // like SCI01 and later do with cmdUpdateSoundCues. kAnimate is called
+ // quite often, so emulate the SCI01 behavior of cmdUpdateSoundCues with
+ // this call
s->_soundCmd->updateSci0Cues();
+ }
#endif
s->_gui->animate(castListReference, cycle, argc, argv);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list