Correction to findSprite()

svn-id: r16932
This commit is contained in:
Travis Howell 2005-02-26 12:10:06 +00:00
parent 280003edee
commit 4a803b93c0
2 changed files with 4 additions and 4 deletions

View File

@ -875,7 +875,7 @@ protected:
uint8 getWizPixelColor(int restype, int resnum, int state, int x, int y, int flags);
int computeWizHistogram(int resnum, int state, int x, int y, int w, int h);
int findSpriteWithClassOf(int x, int y, int spriteGroup, int d, int num, int *args);
int findSpriteWithClassOf(int x, int y, int spriteGroupId, int d, int num, int *args);
int spriteInfoGet_classFlags(int spriteId, int num);
int spriteInfoGet_classFlagsAnd(int spriteId, int num, int *args);
int spriteInfoGet_flags_13(int spriteId);

View File

@ -38,16 +38,16 @@ void ScummEngine_v90he::allocateArrays() {
//
// spriteInfoGet functions
//
int ScummEngine_v90he::findSpriteWithClassOf(int x, int y, int spriteGroup, int d, int num, int *args) {
int ScummEngine_v90he::findSpriteWithClassOf(int x, int y, int spriteGroupId, int d, int num, int *args) {
int classId;
debug(1, "findSprite: x %d, y %d, spriteGroup %d, d %d, num %d", x, y, spriteGroup, d, num);
debug(1, "findSprite: x %d, y %d, spriteGroup %d, d %d, num %d", x, y, spriteGroupId, d, num);
for (int i = 0; i < _numSpritesToProcess; ++i) {
SpriteInfo *spi = _activeSpritesTable[i];
if (!spi->field_4C)
continue;
if (spriteGroup && spi->group_num != spi->field_4C)
if (spriteGroupId && spi->group_num != spriteGroupId)
continue;
for (int j = 0; j < num; j++) {