The sprite set by sfSetObjImage is assigned correctly now for IHNM. This fixes several cases where objects with more than one frame were incorrectly displayed
svn-id: r28571
This commit is contained in:
parent
742d503b92
commit
f3158075bb
1 changed files with 4 additions and 1 deletions
|
@ -629,7 +629,10 @@ void Script::sfSetObjImage(SCRIPTFUNC_PARAMS) {
|
|||
spriteId = thread->pop();
|
||||
|
||||
obj = _vm->_actor->getObj(objectId);
|
||||
obj->_spriteListResourceId = OBJ_SPRITE_BASE + spriteId;
|
||||
if (_vm->getGameType() == GType_IHNM)
|
||||
obj->_spriteListResourceId = spriteId;
|
||||
else
|
||||
obj->_spriteListResourceId = OBJ_SPRITE_BASE + spriteId;
|
||||
_vm->_interface->refreshInventory();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue