[Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.123,1.124

Max Horn fingolfin at users.sourceforge.net
Thu Jun 5 08:32:12 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv27328

Modified Files:
	actor.cpp 
Log Message:
clarified comment

Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/actor.cpp,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- actor.cpp	5 Jun 2003 09:54:57 -0000	1.123
+++ actor.cpp	5 Jun 2003 15:31:34 -0000	1.124
@@ -815,7 +815,8 @@
 void Scumm::processActors() {
 	int numactors = 0;
 
-	// TODO : put this actors as a member array that grows and just realloc when necessary
+	// TODO : put this actors as a member array. It never has to grow or shrink
+	// since _numActors is constant within a game.
 	Actor** actors = new Actor * [_numActors];
 	
 	// Make a list of all actors in this room
@@ -835,7 +836,7 @@
 	// Bertrand TODO : Put a std::sort with a inlined comparison operator?
 	// I suppose only STL containers are not allowed, not algorithms, but I prefered leaving a good old qsort
 	// (Which might be slower that the previous code but just fits on one line)
-	qsort (actors, numactors, sizeof (Actor*), sortByDrawOrder);
+	qsort(actors, numactors, sizeof (Actor*), sortByDrawOrder);
 
 	Actor** end = actors + numactors;
 





More information about the Scummvm-git-logs mailing list