Skip to content

Game freeze with mandatory item routine #71

@Accumulus41

Description

@Accumulus41

New iteminventory.asm file, in stats-standard directory, contains error causing gamefreeze. After backing out of mandatory item event that demands discard (Force Sword/Sky Orb), player is given discard message of random item. Confirming discard proceeds to freeze game.

Current code (DiscardItem subroutine):

@Copy_Loop:     move.b  (a0)+,(a1)+
@Copy:          dbf     d7,@Copy_Loop

@loc_2:         move.b  #ITEM_SUBMENU_ACTION_GIVE,(CURRENT_ITEM_SUBMENU_ACTION).l
                jsr     ExecuteMembersListScreenOnItemSummaryPage
                tst.w   d0
                beq.s   @loc_2
                
                move.w  d0,member(a6)
                move.w  d1,itemSlot(a6)
                move.w  d2,itemEntry(a6)

Branch needs to detect d0 being set to $FFFF to repeat menu prompt.

Simply replacing 'beq.s' with 'bmi.s' seems to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions