diff --git a/scorch.asm b/scorch.asm index 4dc4045..05c9437 100644 --- a/scorch.asm +++ b/scorch.asm @@ -1486,10 +1486,20 @@ Bubble BubbleBobble lda TempResults,x cmp TempResults+1,x - beq nextishigher ; this is to block hangs when 2 equal values meet + bcc nextishigher + bne swapvalues +nextisequal + ; if results are equal, check Direct Hits (only lower byte - sorry memory) + ldy TankSequence,x + lda DirectHitsL,y + ldy TankSequence+1,x + cmp DirectHitsL,y + ; + beq nextishigher ; this is to block hangs when 2 equal values meet bcc nextishigher ;here we must swap values ;because next is smaller than previous +swapvalues sta temp lda TempResults+1,x sta TempResults,x diff --git a/scorch.bin b/scorch.bin index 3f2622f..945a2a0 100644 Binary files a/scorch.bin and b/scorch.bin differ diff --git a/scorch.xex b/scorch.xex index 1350be0..de943c7 100644 Binary files a/scorch.xex and b/scorch.xex differ