diff options
author | Filippos Karapetis | 2007-08-13 01:20:42 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-08-13 01:20:42 +0000 |
commit | f3158075bb4cd21cf28516dc6a6292f66ff6cefc (patch) | |
tree | 0d5ea51524a8f861a452c01b91b8e78785271fb7 /engines/saga/sfuncs.cpp | |
parent | 742d503b92c385ee5f1e8bdaf72f81019e159e00 (diff) | |
download | scummvm-rg350-f3158075bb4cd21cf28516dc6a6292f66ff6cefc.tar.gz scummvm-rg350-f3158075bb4cd21cf28516dc6a6292f66ff6cefc.tar.bz2 scummvm-rg350-f3158075bb4cd21cf28516dc6a6292f66ff6cefc.zip |
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
Diffstat (limited to 'engines/saga/sfuncs.cpp')
-rw-r--r-- | engines/saga/sfuncs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp index eda9aaa3e8..b0904e6479 100644 --- a/engines/saga/sfuncs.cpp +++ b/engines/saga/sfuncs.cpp @@ -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(); } |