X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fop.cpp;h=f8132e49f093c5d8f7c81c33af158aca32b1e0e5;hb=240a6df48aebb5e17f82452c32e770cdfe9b5d5e;hp=f4f858da1472aff8e6749fbf65dbdcd845edb9d0;hpb=40e59fafacbc0df467b9d3c05a6199ff6138949b;p=virtualjaguar diff --git a/src/op.cpp b/src/op.cpp index f4f858d..f8132e4 100644 --- a/src/op.cpp +++ b/src/op.cpp @@ -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);