Fix duplicate hooks.

Also simplify the LoadNarrowObject Hook, and correct the hook location
comment for it.
This commit is contained in:
Kevin Cathcart
2018-07-15 12:47:12 -04:00
parent dff1246e17
commit 7204f6c2d4
3 changed files with 13 additions and 28 deletions

View File

@@ -93,10 +93,8 @@ IsMedallion:
RTL
;--------------------------------------------------------------------------------
LoadNarrowObject:
LDA AddReceivedItemExpanded_wide_item_flag, X : STA ($92), Y ; AddReceiveItem.wide_item_flag? ; LDA.b #$00 : STA ($92), Y in the japanese version
PLY
;JSL.l DrawNarrowDroppedObject
JML.l LoadNarrowObjectReturn
LDA AddReceivedItemExpanded_wide_item_flag, X : STA ($92), Y ; AddReceiveItem.wide_item_flag?
RTL
;--------------------------------------------------------------------------------
DrawNarrowDroppedObject:
; If it's a 16x16 sprite, we'll only draw one, otherwise we'll end up drawing