Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Renaming Dirty_flag to Screen_redraw_flag
The old name was so many shades of bad. Setting it does not enable 'dirty' drawing. In fact, it does the opposite. Not helping is just how vague it is.
  • Loading branch information
Clownacy committed Nov 7, 2015
1 parent 1633b12 commit 0279805
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions s2.asm
Expand Up @@ -16850,12 +16850,12 @@ LoadTilesAsYouMove:
lea (Camera_RAM_copy).w,a3
lea (Level_Layout).w,a4
move.w #vdpComm(VRAM_Plane_A_Name_Table,VRAM,WRITE)>>16,d2
tst.b (Dirty_flag).w
tst.b (Screen_redraw_flag).w

; comment out this line to disable blast processing
beq.s Draw_FG

move.b #0,(Dirty_flag).w
move.b #0,(Screen_redraw_flag).w
moveq #-$10,d4
moveq #$F,d6
; loc_DACE:
Expand Down Expand Up @@ -63546,7 +63546,7 @@ loc_31D7E:
ori.b #3,6(a1)
_move.b #8,0(a1)
move.b #$DD,(Level_Layout+$C54).w
move.b #1,(Dirty_flag).w
move.b #1,(Screen_redraw_flag).w
move.w #-$12,(Boss_Countdown).w

loc_31DB8:
Expand Down Expand Up @@ -77247,7 +77247,7 @@ ObjC2_Bust:
lea (Level_Layout+$950).w,a1
move.l #$6E787978,(a1)+
move.w #$787A,(a1)+
move.b #1,(Dirty_flag).w
move.b #1,(Screen_redraw_flag).w
+
jmpto (MarkObjGone).l, JmpTo39_MarkObjGone
; ===========================================================================
Expand Down Expand Up @@ -82827,7 +82827,7 @@ Animated_Null:
subq.b #1,(CPZ_UnkScroll_Timer).w
bpl.s - ; rts ; do it every 8th frame
move.b #7,(CPZ_UnkScroll_Timer).w
move.b #1,(Dirty_flag).w
move.b #1,(Screen_redraw_flag).w
lea (Chunk_Table+$7500).l,a1 ; chunks $EA-$ED, $FFFF7500 - $FFFF7700
bsr.s +
lea (Chunk_Table+$7D00).l,a1 ; chunks $FA-$FD, $FFFF7D00 - $FFFF7F00
Expand Down
2 changes: 1 addition & 1 deletion s2.constants.asm
Expand Up @@ -1305,7 +1305,7 @@ CNZ_Visible_bumpers_end: ds.l 1
CNZ_Visible_bumpers_start_P2: ds.l 1
CNZ_Visible_bumpers_end_P2: ds.l 1

Dirty_flag: ds.b 1 ; if whole screen needs to redraw
Screen_redraw_flag: ds.b 1 ; if whole screen needs to redraw, such as when you destroy that piston before the boss in WFZ
CPZ_UnkScroll_Timer: ds.b 1 ; Used only in unused CPZ scrolling function
WFZ_SCZ_Fire_Toggle: ds.b 1
ds.b 1 ; $FFFFF72F ; seems unused
Expand Down

0 comments on commit 0279805

Please sign in to comment.