aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-03-06 04:49:58 +0000
committerTravis Howell2005-03-06 04:49:58 +0000
commitf202b4d06da3bb3d5b67f341e7593f71f755a5ef (patch)
treeb0a20528ec6c3d75a107227b7e043b1b3874fc44 /scumm
parent0d3319000886bff139b02c0723f0483213640b31 (diff)
downloadscummvm-rg350-f202b4d06da3bb3d5b67f341e7593f71f755a5ef.tar.gz
scummvm-rg350-f202b4d06da3bb3d5b67f341e7593f71f755a5ef.tar.bz2
scummvm-rg350-f202b4d06da3bb3d5b67f341e7593f71f755a5ef.zip
Use sprite groups number, not sprite id.
svn-id: r17000
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sprite_he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index f8eb27f777..bc93742109 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -257,7 +257,7 @@ int ScummEngine_v90he::spriteInfoGet_grp_tx(int spriteId) {
checkRange(_varNumSprites, 1, spriteId, "Invalid sprite %d");
if (_spriteTable[spriteId].group_num)
- return _spriteTable[spriteId].tx + _spriteGroups[spriteId].tx;
+ return _spriteTable[spriteId].tx + _spriteGroups[_spriteTable[spriteId].group_num].tx;
else
return _spriteTable[spriteId].tx;
}
@@ -266,7 +266,7 @@ int ScummEngine_v90he::spriteInfoGet_grp_ty(int spriteId) {
checkRange(_varNumSprites, 1, spriteId, "Invalid sprite %d");
if (_spriteTable[spriteId].group_num)
- return _spriteTable[spriteId].ty + _spriteGroups[spriteId].ty;
+ return _spriteTable[spriteId].ty + _spriteGroups[_spriteTable[spriteId].group_num].ty;
else
return _spriteTable[spriteId].ty;
}