Allow pausing during cutscene movies. (This will need an update to the mixer's
getSoundElapsedTime() function to work better.) svn-id: r34954
This commit is contained in:
parent
85c1d35ae3
commit
db3438f2c9
6 changed files with 52 additions and 14 deletions
|
@ -2139,15 +2139,16 @@ int32 Logic::fnPlaySequence(int32 *params) {
|
|||
// pause sfx during sequence
|
||||
_vm->_sound->pauseFx();
|
||||
|
||||
MoviePlayer *player = makeMoviePlayer(_vm, filename);
|
||||
_moviePlayer = makeMoviePlayer(_vm, filename);
|
||||
|
||||
if (player->load()) {
|
||||
player->play(_sequenceTextList, _sequenceTextLines, _smackerLeadIn, _smackerLeadOut);
|
||||
if (_moviePlayer->load()) {
|
||||
_moviePlayer->play(_sequenceTextList, _sequenceTextLines, _smackerLeadIn, _smackerLeadOut);
|
||||
}
|
||||
|
||||
_sequenceTextLines = 0;
|
||||
|
||||
delete player;
|
||||
delete _moviePlayer;
|
||||
_moviePlayer = NULL;
|
||||
|
||||
// unpause sound fx again, in case we're staying in same location
|
||||
_vm->_sound->unpauseFx();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue