Fix restarting Maniac NES.

svn-id: r20380
This commit is contained in:
Travis Howell 2006-02-04 23:51:25 +00:00
parent 484f6d1ad9
commit bdedc81c22

View file

@ -2718,15 +2718,23 @@ void ScummEngine::restart() {
for (i = 0; i < _numGlobalObjects; i++)
clearOwnerOf(i);
// Reinit things
allocateArrays(); // Reallocate arrays
readIndexFile(); // Reread index (reset objectstate etc)
scummInit(); // Reinit scumm variables
// Reallocate arrays
allocateArrays();
// Reread index (reset objectstate etc)
readIndexFile();
// Reinit scumm variables
scummInit();
initScummVars();
if (_imuse) {
_imuse->setBase(res.address[rtSound]);
}
_sound->setupSound(); // Reinit sound engine
// Reinit sound engine
if (_version >= 5)
_sound->setupSound();
// Re-run bootscript
int args[16];