Better order of players in summary
If players have the same score, place is decided by "direct hits".
This commit is contained in:
+11
-1
@@ -1486,10 +1486,20 @@ Bubble
|
|||||||
BubbleBobble
|
BubbleBobble
|
||||||
lda TempResults,x
|
lda TempResults,x
|
||||||
cmp TempResults+1,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
|
bcc nextishigher
|
||||||
;here we must swap values
|
;here we must swap values
|
||||||
;because next is smaller than previous
|
;because next is smaller than previous
|
||||||
|
swapvalues
|
||||||
sta temp
|
sta temp
|
||||||
lda TempResults+1,x
|
lda TempResults+1,x
|
||||||
sta TempResults,x
|
sta TempResults,x
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user