diff options
author | Paweł Kołodziejski | 2003-09-26 17:55:50 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-09-26 17:55:50 +0000 |
commit | 3745b176b2f072d6239a6cdb04e3e7b7651f6aed (patch) | |
tree | 6ecbd7aa77fadcc87dd702a94197a9484f087483 /scumm | |
parent | 2ef170833362f224c43a0433e9fac07aa7947f60 (diff) | |
download | scummvm-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.cpp | 22 |
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(); |