diff --git a/game.asm b/game.asm index 5836e27..1361c94 100644 --- a/game.asm +++ b/game.asm @@ -1097,6 +1097,22 @@ nextisequal lda DirectHits,y ldy TankSequence+1,x cmp DirectHits,y + bcc nextishigher + bne swapvalues +nextisequal2 + ; if results are equal, check money (H) + ldy TankSequence,x + lda moneyH,y + ldy TankSequence+1,x + cmp moneyH,y + bcc nextishigher + bne swapvalues +nextisequal2b + ; if results are equal, check money (L) + ldy TankSequence,x + lda moneyL,y + ldy TankSequence+1,x + cmp moneyL,y ; beq nextishigher ; this is to block hangs when 2 equal values meet bcc nextishigher diff --git a/scorch.bin b/scorch.bin index 8654302..128c859 100644 Binary files a/scorch.bin and b/scorch.bin differ diff --git a/scorch.xex b/scorch.xex index e3db4cb..83459a9 100644 Binary files a/scorch.xex and b/scorch.xex differ