Fix 99+ Lives
From Sonic Retro
Revision as of 01:47, 10 July 2020 by Alex Field (talk | contribs) (Created page with "{{GuideBy|Alex Field}} In Sonic 2, it's possible to get 99+ lives by the 1up or super ring monitor; doing so will bug-out the lives counter, so let's prevent this. At ''soni...")
Revision as of 01:47, 10 July 2020 by Alex Field (talk | contribs) (Created page with "{{GuideBy|Alex Field}} In Sonic 2, it's possible to get 99+ lives by the 1up or super ring monitor; doing so will bug-out the lives counter, so let's prevent this. At ''soni...")
(Original guide by Alex Field)
In Sonic 2, it's possible to get 99+ lives by the 1up or super ring monitor; doing so will bug-out the lives counter, so let's prevent this.
At sonic_1up, change the code to this:
addq.w #1,(Monitors_Broken).w
cmpi.b #99,(Life_count).w
bhs.s +
addq.b #1,(Life_count).w
addq.b #1,(Update_HUD_lives).w
move.w #MusID_ExtraLife,d0
jsr (PlayMusic).l ; Play extra life music
+
rts
Then at tails_1up, change the code to this:
addq.w #1,(Monitors_Broken_2P).w
cmpi.b #99,(Life_count_2P).w
bhs.s +
addq.b #1,(Life_count_2P).w
addq.b #1,(Update_HUD_lives_2P).w
move.w #MusID_ExtraLife,d0
jsr (PlayMusic).l ; Play extra life music
+
rts