Fix restarting Maniac NES.
svn-id: r20380
This commit is contained in:
parent
484f6d1ad9
commit
bdedc81c22
1 changed files with 13 additions and 5 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue