mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 02:44:56 +00:00
Correction to findSprite()
svn-id: r16932
This commit is contained in:
parent
280003edee
commit
4a803b93c0
@ -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);
|
||||
|
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user