aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/various.cpp
diff options
context:
space:
mode:
authorKari Salminen2008-07-30 11:03:52 +0000
committerKari Salminen2008-07-30 11:03:52 +0000
commit4210defa2980092822bd8e931b7ca37bbae020ad (patch)
treeee5f6f0d72a2cb8969f2094c5173fa67e45a71c7 /engines/cine/various.cpp
parent8941a96bf0742b35e04741d9841d4c1430201baa (diff)
downloadscummvm-rg350-4210defa2980092822bd8e931b7ca37bbae020ad.tar.gz
scummvm-rg350-4210defa2980092822bd8e931b7ca37bbae020ad.tar.bz2
scummvm-rg350-4210defa2980092822bd8e931b7ca37bbae020ad.zip
Added some debug aids related to addAni and the processSeqList crashing.
svn-id: r33444
Diffstat (limited to 'engines/cine/various.cpp')
-rw-r--r--engines/cine/various.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index 14f75efe29..1af807c867 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -2186,6 +2186,8 @@ uint16 addAni(uint16 param1, uint16 objIdx, const int8 *ptr, SeqListElement &ele
const int8 *ptr2;
int16 di;
+ debug(5, "addAni: param1 = %d, objIdx = %d, ptr = %p, param3 = %d", param1, objIdx, ptr, param3);
+
// In the original an error string is set and 0 is returned if the following doesn't hold
assert(ptr);
@@ -2291,6 +2293,19 @@ void processSeqListElement(SeqListElement &element) {
int16 var_10;
int16 var_4;
int16 var_2;
+
+ // Initial interpretations for variables addressed through ptr1 (8-bit addressing):
+ // These may be inaccurate!
+ // 0: ?
+ // 1: xRadius
+ // 2: yRadius
+ // 3: ?
+ // 4: xAdd
+ // 5: yAdd
+ // 6: ?
+ // 7: ?
+ // After this come (At least at positions 0, 1 and 3 in 16-bit addressing)
+ // 16-bit big-endian values used for addressing through ptr1.
if (element.var12 < element.var10) {
element.var12++;