mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 12:22:51 +00:00
Make Zak/Indy inventories work.
svn-id: r3784
This commit is contained in:
parent
3afe1924df
commit
86a9461373
@ -2497,17 +2497,16 @@ void Scumm::o5_oldRoomEffect() {
|
||||
}
|
||||
|
||||
void Scumm::o5_pickupObjectOld() {
|
||||
int obj = getVarOrDirectWord(0x80);
|
||||
|
||||
int obj;
|
||||
|
||||
obj = getVarOrDirectWord(0x80);
|
||||
|
||||
if(getObjectIndex(obj) != 1)
|
||||
if(getObjectIndex(obj) == -1)
|
||||
return;
|
||||
|
||||
addObjectToInventory(obj,_currentRoom); /*FIXME: the implementation is not quite acurate */
|
||||
|
||||
|
||||
warning("pickupObjectOld(%d) not fully supported",obj);
|
||||
|
||||
addObjectToInventory(obj,_currentRoom);
|
||||
removeObjectFromRoom(obj);
|
||||
putOwner(obj, _vars[VAR_EGO]);
|
||||
putClass(obj, 32, 1);
|
||||
putState(obj, 1);
|
||||
clearDrawObjectQueue();
|
||||
runHook(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user