fixed toggling music on/off after savegame restore

svn-id: r9007
This commit is contained in:
Robert Göffringmann 2003-07-14 09:26:50 +00:00
parent d971845fab
commit e997d05b3c

View File

@ -1452,7 +1452,9 @@ uint16 SkyControl::parseSaveData(uint8 *srcBuf) {
_skyLogic->fnEnterSection(SkyLogic::_scriptVariables[CUR_SECTION], 0, 0);
}
_skyDisk->refreshFilesList(reloadList);
_skyMusic->startMusic((uint16)music);
SkyState::_systemVars.currentMusic = (uint16)music;
if (!(SkyState::_systemVars.systemFlags & SF_MUS_OFF))
_skyMusic->startMusic((uint16)music);
_savedMouse = (uint16)mouseType;
SkyState::_systemVars.currentPalette = palette; // will be set when doControlPanel ends
SkyState::_systemVars.systemFlags |= SF_GAME_RESTORED; // what's that for?