[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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.234,1.235
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.141,2.142 gfx.h,1.40,1.41 saveload.cpp,1.86,1.87 scumm.h,1.242,1.243 scummvm.cpp,2.214,2.215
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.234,1.235
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.141,2.142 gfx.h,1.40,1.41 saveload.cpp,1.86,1.87 scumm.h,1.242,1.243 scummvm.cpp,2.214,2.215
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list