Skip to content

Commit

Permalink
XEEN: Correct scroll and music when signing into tavern
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 31, 2018
1 parent d6841ef commit 7edac19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/xeen/dialogs/dialogs_party.cpp
Expand Up @@ -45,6 +45,7 @@ void PartyDialog::show(XeenEngine *vm) {

void PartyDialog::execute() {
EventsManager &events = *_vm->_events;
FileManager &files = *_vm->_files;
Interface &intf = *_vm->_interface;
Map &map = *_vm->_map;
Party &party = *_vm->_party;
Expand All @@ -54,6 +55,7 @@ void PartyDialog::execute() {
bool modeFlag = false;
int startingChar = 0;

sound.playSong(files._ccNum ? "newbrigh.m" : "inn.m");
loadButtons();
setupBackground();

Expand Down
10 changes: 10 additions & 0 deletions engines/xeen/locations.cpp
Expand Up @@ -572,6 +572,7 @@ Common::String TavernLocation::createLocationText(Character &ch) {
}

Character *TavernLocation::doOptions(Character *c) {
EventsManager &events = *g_vm->_events;
Interface &intf = *g_vm->_interface;
Map &map = *g_vm->_map;
Party &party = *g_vm->_party;
Expand Down Expand Up @@ -717,6 +718,15 @@ Character *TavernLocation::doOptions(Character *c) {
party.addTime(1440);
party._mazeId = 0;

// Say farewell
farewell();
while (sound.isSoundPlaying())
events.wait(1);

// Animate closing a scroll
doScroll(true, false);
sound.stopAllAudio();

// Show the party dialog
PartyDialog::show(g_vm);

Expand Down

0 comments on commit 7edac19

Please sign in to comment.