aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-06-05 15:31:34 +0000
committerMax Horn2003-06-05 15:31:34 +0000
commit41c03fa082353423692fb7c84e5a46ab5f1fbdc5 (patch)
tree333fe38fe69e80a50c25b0bda7459192dd6fcd20 /scumm
parentbec113014805f79507b0cdde38689f5dac40e791 (diff)
downloadscummvm-rg350-41c03fa082353423692fb7c84e5a46ab5f1fbdc5.tar.gz
scummvm-rg350-41c03fa082353423692fb7c84e5a46ab5f1fbdc5.tar.bz2
scummvm-rg350-41c03fa082353423692fb7c84e5a46ab5f1fbdc5.zip
clarified comment
svn-id: r8328
Diffstat (limited to 'scumm')
-rw-r--r--scumm/actor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index f13c7014ab..3bf808aacf 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -815,7 +815,8 @@ int sortByDrawOrder (const void* a, const void* b)
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 @@ void Scumm::processActors() {
// 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;