Skip to content

Commit 49c90df

Browse files
authored
Merge pull request #380 from blkerby/main
Fix graphical issue with shot block items
2 parents 4342892 + b897f2a commit 49c90df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: Projects/Base/ASM/Item Loading.asm

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lorom
1313

1414
macro RegularItemPLM(addr, gfx)
1515
org $840000+<addr>
16-
dw load_item_gfx, <gfx> ; load item graphics
16+
dw load_item_gfx, <gfx> ; load item graphics
1717
dw $887C, <addr>+$21 ; go to end if item is collected
1818
dw $8A24, <addr>+$18 ; set link instruction
1919
dw $86C1, $DF89 ; pre-instruction = go to link instruction if triggered
@@ -24,7 +24,7 @@ endmacro
2424

2525
macro ChozoBallItemPLM(addr, gfx)
2626
org $840000+<addr>
27-
dw load_item_gfx, <gfx> ; load item graphics
27+
dw load_item_gfx, <gfx> ; load item graphics
2828
dw $887C, <addr>+$2C ; go to end if item is collected
2929
dw $8A2E, $DFAF ; call $DFAF (item orb)
3030
dw $8A2E, $DFC7 ; call $DFC7 (item orb burst)
@@ -39,7 +39,7 @@ endmacro
3939

4040
macro ShotBlockItemPLM(addr, gfx)
4141
org $840000+<addr>
42-
dw load_item_gfx, <gfx> ; load item graphics
42+
dw load_item_gfx, <gfx> ; load item graphics
4343
dw $8A2E, $E007 ; call $E007 (item shot block)
4444
dw $887C, <addr>+$30 ; go to end if item is collected
4545
dw $8A24, <addr>+$27 ; set link instruction
@@ -51,6 +51,8 @@ org $840000+<addr>
5151
dw $873F, <addr>+$17 ; decrement timer and loop if non-zero
5252
dw $8A2E, $E020 ; call $E020 (item shot block reconcealing)
5353
dw $8724, <addr>+$04 ; go to start (without loading graphics again)
54+
org $840000+<addr>+$34
55+
dw $8724, <addr>+$04 ; go to start (without loading graphics again)
5456
endmacro
5557

5658
; Patch item PLM instruction lists:

0 commit comments

Comments
 (0)