aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-09-26 17:55:50 +0000
committerPaweł Kołodziejski2003-09-26 17:55:50 +0000
commit3745b176b2f072d6239a6cdb04e3e7b7651f6aed (patch)
tree6ecbd7aa77fadcc87dd702a94197a9484f087483 /scumm
parent2ef170833362f224c43a0433e9fac07aa7947f60 (diff)
downloadscummvm-rg350-3745b176b2f072d6239a6cdb04e3e7b7651f6aed.tar.gz
scummvm-rg350-3745b176b2f072d6239a6cdb04e3e7b7651f6aed.tar.bz2
scummvm-rg350-3745b176b2f072d6239a6cdb04e3e7b7651f6aed.zip
added v6 version of stamp object opcode
svn-id: r10418
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v6.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 10f1131c55..e0e717bfbf 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -2795,7 +2795,29 @@ void Scumm_v6::o6_pickOneOfDefault() {
void Scumm_v6::o6_stampObject() {
int object, x, y, state;
+
+ // V6 version
+ if (_version == 6) {
+ state = pop();
+ if (state == 0) {
+ state = 1;
+ }
+ y = pop();
+ x = pop();
+ object = pop();
+ int objnum = getObjectIndex(object);
+ if (objnum == -1)
+ return;
+ if (x != -1) {
+ setObjectState(object, state, x, y);
+ }
+ drawObject(objnum, 0);
+ warning("o6_stampObject: (%d at (%d,%d) state %d)", object, x, y, state);
+
+ return;
+ }
+ // V7 version
state = pop();
y = pop();
x = pop();