]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/op.cpp
Added logging of GPU/DSP states on exit.
[virtualjaguar] / src / op.cpp
index f4f858da1472aff8e6749fbf65dbdcd845edb9d0..f8132e49f093c5d8f7c81c33af158aca32b1e0e5 100644 (file)
@@ -230,9 +230,9 @@ void OPDiscoverObjects(uint32_t address)
 
                if (objectType == 3)
                {
-                       // Branch if YPOS < 2047 can be treated as a GOTO, so don't do any
-                       // discovery in that case. Otherwise, have at it:
-                       if ((lo & 0xFFFF) != 0x7FFB)
+                       // Branch if YPOS < 2047 (or YPOS > 0) can be treated as a GOTO, so
+                       // don't do any discovery in that case. Otherwise, have at it:
+                       if (((lo & 0xFFFF) != 0x7FFB) && ((lo & 0xFFFF) != 0x8003))
                                // Recursion needed to follow all links! This does depth-first
                                // recursion on the not-taken objects
                                OPDiscoverObjects(address + 8);