[Scummvm-cvs-logs] CVS: scummvm/scumm script.cpp,1.35,1.36
Max Horn
fingolfin at users.sourceforge.net
Sun Dec 29 18:12:02 CET 2002
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv32116
Modified Files:
script.cpp
Log Message:
added FIXME
Index: script.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- script.cpp 30 Dec 2002 01:25:51 -0000 1.35
+++ script.cpp 30 Dec 2002 02:11:33 -0000 1.36
@@ -640,6 +640,10 @@
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) {
More information about the Scummvm-git-logs
mailing list