diff options
author | Robert Göffringmann | 2003-12-17 05:16:37 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-12-17 05:16:37 +0000 |
commit | 7f5df14e7d5a4b4c560fa8697994fa5b512f8971 (patch) | |
tree | 41bd53855b4a722780e787481cd7cb5fc49d391c /sword1/sword1.cpp | |
parent | 6b3429c4bbfea21096ae2de520579e99bf3fd3d4 (diff) | |
download | scummvm-rg350-7f5df14e7d5a4b4c560fa8697994fa5b512f8971.tar.gz scummvm-rg350-7f5df14e7d5a4b4c560fa8697994fa5b512f8971.tar.bz2 scummvm-rg350-7f5df14e7d5a4b4c560fa8697994fa5b512f8971.zip |
menu, sound and mouse fixes.
svn-id: r11701
Diffstat (limited to 'sword1/sword1.cpp')
-rw-r--r-- | sword1/sword1.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index 56ee0e0ff9..4372b7cae4 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -110,7 +110,7 @@ void SwordEngine::initialize(void) { _sound = new SwordSound("", _mixer, _resMan); _menu = new SwordMenu(_screen, _mouse); _logic = new SwordLogic(_objectMan, _resMan, _screen, _mouse, _sound, _music, _menu); - _mouse->useLogic(_logic); + _mouse->useLogicAndMenu(_logic, _menu); _systemVars.justRestoredGame = _systemVars.currentCD = _systemVars.gamePaused = _systemVars.saveGameFlag = @@ -171,6 +171,7 @@ void SwordEngine::mainLoop(void) { do { // do we need the section45-hack from sword.c here? // todo: ensure right cd is inserted + _sound->newScreen(SwordLogic::_scriptVars[NEW_SCREEN]); _screen->newScreen(SwordLogic::_scriptVars[NEW_SCREEN]); _logic->newScreen(SwordLogic::_scriptVars[NEW_SCREEN]); SwordLogic::_scriptVars[SCREEN] = SwordLogic::_scriptVars[NEW_SCREEN]; @@ -221,7 +222,8 @@ void SwordEngine::mainLoop(void) { } while ((SwordLogic::_scriptVars[SCREEN] == SwordLogic::_scriptVars[NEW_SCREEN]) && (_systemVars.saveGameFlag < 2)); // change screen - if (SwordLogic::_scriptVars[SCREEN] != 53) // don't fade down after syria pan + // we don't fade down after syria pan (53). Also, scripts can call fnFadeDown, in that case, we already are fading + if ((SwordLogic::_scriptVars[SCREEN] != 53) && (!_screen->stillFading())) _screen->fadeDownPalette(); while (_screen->stillFading()) { _music->stream(); |