Skip to content

Commit 31ffb39

Browse files
committed
PARALLACTION: keep music playing during the intro (fix bug #2879791).
svn-id: r55148
1 parent 9dd0e0f commit 31ffb39

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

engines/parallaction/parallaction_ns.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,11 @@ void Parallaction_ns::changeLocation() {
351351
MouseTriState oldMouseState = _input->getMouseState();
352352
_input->setMouseState(MOUSE_DISABLED);
353353

354-
_soundManI->playLocationMusic(location);
355-
354+
if (!_intro) {
355+
// prevent music changes during the introduction
356+
_soundManI->playLocationMusic(location);
357+
}
358+
356359
_input->stopHovering();
357360
// this is still needed to remove the floatingLabel
358361
_gfx->freeLabels();
@@ -468,8 +471,11 @@ void Parallaction_ns::changeCharacter(const char *name) {
468471
_objects = _disk->loadObjects(_char.getBaseName());
469472
_objectsNames = _disk->loadTable(_char.getBaseName());
470473

471-
_soundManI->playCharacterMusic(_char.getBaseName());
472-
474+
if (!_intro) {
475+
// prevent music changes during the introduction
476+
_soundManI->playCharacterMusic(_char.getBaseName());
477+
}
478+
473479
// The original engine used to reload 'common' only on loadgames. We are reloading here since 'common'
474480
// contains character specific stuff. This causes crashes like bug #1816899, because parseLocation tries
475481
// to reload scripts but the data archive selected is occasionally wrong. This has been solved by having

0 commit comments

Comments
 (0)