diff options
author | Filippos Karapetis | 2011-12-25 16:33:30 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-25 16:33:30 +0200 |
commit | e322d6257dae83761c86c9d5bfbc7d02c0a9988d (patch) | |
tree | cbf4ce9441c773811acc8ddff69cbdb1602814c5 /engines/dreamweb/object.cpp | |
parent | 3802b21183b148f1c8d43cc8d2e550afed6e9e6a (diff) | |
download | scummvm-rg350-e322d6257dae83761c86c9d5bfbc7d02c0a9988d.tar.gz scummvm-rg350-e322d6257dae83761c86c9d5bfbc7d02c0a9988d.tar.bz2 scummvm-rg350-e322d6257dae83761c86c9d5bfbc7d02c0a9988d.zip |
DREAMWEB: Port 'locationpic', 'reexfrominv' to C++
Diffstat (limited to 'engines/dreamweb/object.cpp')
-rw-r--r-- | engines/dreamweb/object.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/dreamweb/object.cpp b/engines/dreamweb/object.cpp index dff58050a5..9d81825964 100644 --- a/engines/dreamweb/object.cpp +++ b/engines/dreamweb/object.cpp @@ -826,4 +826,12 @@ void DreamGenContext::selectOpenOb() { delPointer(); } +void DreamGenContext::reExFromInv() { + uint16 objectId = getSegment(data.word(kBuffers)).word(findInvPosCPP()); + data.byte(kCommandtype) = objectId >> 8; + data.byte(kCommand) = objectId & 0x00FF; + data.byte(kExamagain) = 1; + data.byte(kPointermode) = 0; +} + } // End of namespace DreamGen |