mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
Implemented opcodes for picking up/dropping/opening/closing items.
svn-id: r33370
This commit is contained in:
parent
f4ef55a2e5
commit
fb388deb99
@ -122,11 +122,19 @@ DECLARE_COMMAND_OPCODE(location) {
|
||||
|
||||
DECLARE_COMMAND_OPCODE(open) {
|
||||
warning("Parallaction_br::cmdOp_open command not yet implemented");
|
||||
_ctxt.cmd->u._zone->_flags &= ~kFlagsClosed;
|
||||
if (_ctxt.cmd->u._zone->u.door->gfxobj) {
|
||||
_vm->updateDoor(_ctxt.cmd->u._zone);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DECLARE_COMMAND_OPCODE(close) {
|
||||
warning("Parallaction_br::cmdOp_close not yet implemented");
|
||||
_ctxt.cmd->u._zone->_flags |= kFlagsClosed;
|
||||
if (_ctxt.cmd->u._zone->u.door->gfxobj) {
|
||||
_vm->updateDoor(_ctxt.cmd->u._zone);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -165,7 +173,7 @@ DECLARE_COMMAND_OPCODE(call) {
|
||||
|
||||
|
||||
DECLARE_COMMAND_OPCODE(drop) {
|
||||
warning("Parallaction_br::cmdOp_drop not yet implemented");
|
||||
_vm->dropItem(_ctxt.cmd->u._object);
|
||||
}
|
||||
|
||||
|
||||
@ -204,7 +212,7 @@ DECLARE_COMMAND_OPCODE(offmouse) {
|
||||
|
||||
|
||||
DECLARE_COMMAND_OPCODE(add) {
|
||||
warning("Parallaction_br::cmdOp_add not yet implemented");
|
||||
_vm->addInventoryItem(_ctxt.cmd->u._object);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user