diff options
author | Max Horn | 2002-12-30 02:11:33 +0000 |
---|---|---|
committer | Max Horn | 2002-12-30 02:11:33 +0000 |
commit | 5c6bd0f65826fd8a588f7ca4dd6f471703ba5ef5 (patch) | |
tree | 3ff4dcae7c7cfa4aa9feba095ec3903577864bd9 /scumm/script.cpp | |
parent | d87b7fb471f68554f902932c367e62c8e7d76f68 (diff) | |
download | scummvm-rg350-5c6bd0f65826fd8a588f7ca4dd6f471703ba5ef5.tar.gz scummvm-rg350-5c6bd0f65826fd8a588f7ca4dd6f471703ba5ef5.tar.bz2 scummvm-rg350-5c6bd0f65826fd8a588f7ca4dd6f471703ba5ef5.zip |
added FIXME
svn-id: r6271
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 49b8f45ee1..82311a5207 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -640,6 +640,10 @@ void Scumm::runAllScripts() for (i = 0; i < NUM_SCRIPT_SLOT; i++) vm.slot[i].didexec = 0; + // FIXME - why is _curExecScript?!? The only place it is ever set is here. + // The outer world will only see it as consequence of the calls made in the following + // for loop. But in that case, _curExecScript will be equal to _currentScript. Hence + // it would seem we can replace all occurances of _curExecScript by _currentScript. _currentScript = 0xFF; for (_curExecScript = 0; _curExecScript < NUM_SCRIPT_SLOT; _curExecScript++) { if (vm.slot[_curExecScript].status == ssRunning && vm.slot[_curExecScript].didexec == 0) { |