Fix death scene issue

This commit is contained in:
Lorenzo Carletti 2020-08-24 19:28:28 +02:00
parent 663b6fee15
commit 5a1ebd390a
2 changed files with 27 additions and 4 deletions

View File

@ -1710,12 +1710,10 @@ nop
.org 0x801352E :: bl printPlayerNameCredits
//Repoint cast graphical data
.org 0x82DB25C :: dw m2_cast_graphics
.org 0x82DB260 :: dw m2_cast_palette
.org 0x82DB264 :: dw m2_cast_arrangements
.org m2_cast_roll_pointers :: dw m2_cast_graphics :: dw m2_cast_palette :: dw m2_cast_arrangements
//Remove flavour changing the palette
.org 0x801043A :: b 0x8010500
.org 0x8010426 :: bl prevent_cast_changed_palettes
//Cast Roll VWF
.org 0x800F640 :: bl writeCastText
@ -2013,6 +2011,7 @@ disclaimer_map:
.definelabel m2_div ,0x80F49D8
.definelabel m2_remainder ,0x80F4A70
.definelabel cpuset ,0x80F47C0
.definelabel m2_cast_roll_pointers ,0x82DB25C
.definelabel m2_items ,0x8B1D62C
.definelabel m2_default_names ,0x82B9330
.definelabel m2_psi_print_table ,0x8B2A9C0

View File

@ -3360,6 +3360,30 @@ bl eb_cartridge_palette_change
@@end:
pop {pc}
//==============================================================================
//Prevents changing the palette based on the flavour for the cast roll sequence
prevent_cast_changed_palettes:
push {lr}
ldr r1,=#m2_cast_roll_pointers
cmp r0,r1
beq @@alternate_end
bl 0x8010028
pop {pc}
@@alternate_end:
bl 0x8010028
ldr r1,=#0x40000D4
ldr r0,=#0x2010000
str r0,[r1,#0]
ldr r3,=#0x3001B30
str r3,[r1,#4]
ldr r0,=#0x84000080
str r0,[r1,#8]
ldr r0,[r1,#8]
pop {r0}
ldr r0,=#0x8010501 //Go to the end of the routine
bx r0
//==============================================================================
//Prints the sick tiles and then the names
sick_name: