diff --git a/src/fx/fx.dhgr.48boxes.common.a b/src/fx/fx.dhgr.48boxes.common.a index 7b2671a8b..1a77270ee 100644 --- a/src/fx/fx.dhgr.48boxes.common.a +++ b/src/fx/fx.dhgr.48boxes.common.a @@ -219,11 +219,11 @@ k_bitcopy = 30 ; must be last token sta $C001 ; 80STORE mode so we can bank $2000/aux in & out with STA $C055 & $C054 MainLoop ldx #48 -BoxLoop stx box - ldy BoxStages-1, x ; for each box, get its current stage +BoxLoop ldy BoxStages-1, x ; for each box, get its current stage inc BoxStages-1, x ; increment every box's stage every time through the loop lda StagesHi, y beq NextBox ; if stage's drawing routine is 0, nothing to do + stx box sta j+2 lda BoxesX-1, x ldy BoxesY-1, x ; Y = starting byte offset for this box diff --git a/src/fx/fx.hgr.48boxes.common.a b/src/fx/fx.hgr.48boxes.common.a index 470853250..f9d852f29 100644 --- a/src/fx/fx.hgr.48boxes.common.a +++ b/src/fx/fx.hgr.48boxes.common.a @@ -211,11 +211,11 @@ k_right_mask = 17 +BUILD_HGR_LOOKUP_TABLES_X_IS_ALREADY_0 hgrlo, hgrhi MainLoop ldx #48 -BoxLoop stx box - ldy BoxStages-1, x ; for each box, get its current stage +BoxLoop ldy BoxStages-1, x ; for each box, get its current stage inc BoxStages-1, x ; increment every box's stage every time through the loop lda StagesHi, y beq NextBox ; if stage's drawing routine is 0, nothing to do + stx box sta j+2 lda BoxesX-1, x ldy BoxesY-1, x ; Y = starting byte offset for this box