Fix a little fuck up in score sorting.

This commit is contained in:
Randy Thiemann 2023-11-12 14:35:16 +01:00
parent 52010f22e0
commit 865a8b52ce
5 changed files with 287 additions and 285 deletions

Binary file not shown.

View File

@ -428,164 +428,164 @@ ROM0 bank #0:
$3174 = Next7Piece
$3174 = !20
$317e = NextByte
SECTION: $319e-$3361 ($01c4 bytes) ["Hi Score Functions"]
SECTION: $319e-$3365 ($01c8 bytes) ["Hi Score Functions"]
$319e = CheckAndAddHiscore
$31a8 = CheckAndAddHiscore.checkloop
$31ad = CheckAndAddHiscore.checkgrade
$31b6 = CheckAndAddHiscore.oldgraded
$31c1 = CheckAndAddHiscore.oldungraded
$31c8 = CheckAndAddHiscore.checklevel
$31ed = CheckAndAddHiscore.checkscore
$3230 = CheckAndAddHiscore.notbetter
$323d = CheckAndAddHiscore.better
$323f = InsertHiScore
$323f = InsertHiScore.copylower
$3250 = InsertHiScore.copyupper
$325d = !0
$3271 = InsertHiScore.findrow
$327e = !1
$3282 = InsertHiScore.insert
$32db = InsertHiScore.persist
$32ec = GetHiScoreEntry
$3301 = !2
$3305 = GetHiScoreEntry.store
$330e = InitTargetHSTable
$3319 = InitTargetHSTable.jumps
$332e = InitTargetHSTable.dmgt
$3333 = InitTargetHSTable.tgm1
$3338 = InitTargetHSTable.tgm3
$333d = InitTargetHSTable.deat
$3342 = InitTargetHSTable.shir
$3347 = InitTargetHSTable.chil
$334c = InitTargetHSTable.myco
$334f = InitTargetHSTable.store
SECTION: $3362-$34ab ($014a bytes) ["Progress Data"]
$3362 = sProgressData
SECTION: $34ac-$35eb ($0140 bytes) ["Hi Score Data"]
$34ac = sHiscoreDefaultData
SECTION: $35ec-$371f ($0134 bytes) ["Input Functions"]
$35ec = InputInit
$35fe = GetInput
$35fe = GetInput.btns
$360b = GetInput.readA
$360f = GetInput.setA
$361a = GetInput.clearA
$361d = GetInput.readB
$3621 = GetInput.setB
$362c = GetInput.clearB
$362f = GetInput.readSelect
$3633 = GetInput.setSelect
$363e = GetInput.clearSelect
$3641 = GetInput.readStart
$3645 = GetInput.setStart
$3650 = GetInput.clearStart
$3653 = GetInput.dpad
$3660 = GetInput.readUp
$3664 = GetInput.setUp
$366f = GetInput.clearUp
$3672 = GetInput.readDown
$3676 = GetInput.setDown
$3681 = GetInput.clearDown
$3684 = GetInput.readLeft
$3688 = GetInput.setLeft
$3693 = GetInput.clearLeft
$3696 = GetInput.readRight
$369a = GetInput.setRight
$36a5 = GetInput.clearRight
$36a8 = GetInput.priorities
$36b5 = GetInput.jumps
$36c4 = GetInput.dlru
$36d7 = GetInput.ulrd
$36ea = GetInput.lrud
$36f7 = GetInput.udlr
$3704 = GetInput.zeroud
$370a = GetInput.zerolr
$3710 = GetInput.zerolrd
$3718 = GetInput.zerolru
SECTION: $3720-$37ff ($00e0 bytes) ["Score Functions"]
$3720 = ScoreInit
$3748 = IncreaseScore
$3780 = IncreaseScore.doConvert
$3782 = !0
$3798 = IncreaseScore.carry
$379a = IncreaseScore.postConvert
$37a7 = !1
$37ae = IncreaseScore.preAddDigit
$37d6 = IncreaseScore.addDigit
$37ec = IncreaseScore.nextDigit
SECTION: $3800-$38ca ($00cb bytes) ["Title Function Trampolines"]
$3800 = SwitchToTitle
$3809 = TitleEventLoopHandler
$3813 = TitleVBlankHandler
$381d = PersistLevel
$382b = DrawSpeedMain
$387b = DrawSpeedSettings
SECTION: $38cb-$3990 ($00c6 bytes) ["Time Functions"]
$38cb = TimeInit
$38eb = StartCountdown
$38f9 = ResetGameTime
$3904 = CheckTorikan
$391b = CheckTorikan.failure
$391d = CheckTorikan.success
$3920 = HandleTimers
$3946 = HandleTimers.reduce
$3953 = HandleTimers.clock
$396d = HandleTimers.go
SECTION: $3991-$3a42 ($00b2 bytes) ["Progress Functions"]
$3991 = SetProgress
$399c = SetProgress.loop
$39a0 = SetProgress.correct
$39c7 = SetProgress.wvr_u1
$39d3 = SetProgress.wvr_u2
$39e1 = SetProgress.wvr_u3
$39ed = SetProgress.wvr_u4
$39fb = SetProgress.wvr_u5
$3a07 = SetProgress.wvr_u6
$3a15 = SetProgress.wvr_u7
$3a21 = SetProgress.wvr_u8
$3a2f = SetProgress.wvr_u9
$3a3b = SetProgress.wvr_u10
SECTION: $3a43-$3ad4 ($0092 bytes) ["Code Entry Point"]
$3a43 = Main
$3a6c = Main.notgbc
$3a72 = Main.wvr_u1
$3a99 = EventLoop
$3aaf = EventLoop.eventloopjumps
$3ab8 = EventLoopPostHandler
$3aba = EventLoopPostHandler.wvb_u2
$3acc = EventLoopPostHandler.vblankjumps
SECTION: $3ad5-$3b26 ($0052 bytes) ["Tile Functions"]
$3ad5 = LoadTitleTiles
$3af3 = LoadGameplayTiles
$3b09 = LoadGameplayTiles.gbc
$3b18 = LoadGameplayTiles.dmg
SECTION: $3b27-$3b62 ($003c bytes) ["Time Data"]
$3b27 = sFramesToCS
SECTION: $3b63-$3b90 ($002e bytes) ["Memory Functions"]
$3b63 = UnsafeMemCopy
$3b6c = SafeMemCopy.wvr_u1
$3b6c = SafeMemCopy
$3b7b = UnsafeMemSet
$3b83 = SafeMemSet
$3b83 = SafeMemSet.wvr_u2
SECTION: $3b91-$3bb6 ($0026 bytes) ["Gameplay Function Trampolines"]
$3b91 = SwitchToGameplay
$3b9a = SwitchToGameplayBig
$3ba3 = GamePlayEventLoopHandler
$3bad = GamePlayBigEventLoopHandler
SECTION: $3bb7-$3bdb ($0025 bytes) ["Interrupt Initialization Functions"]
$3bb7 = EnableScreenSquish
$3bd1 = DisableScreenSquish
SECTION: $3bdc-$3bfd ($0022 bytes) ["OAM Functions"]
$3bdc = CopyOAMHandler
$3be8 = ClearOAM
SECTION: $3bfe-$3c0c ($000f bytes) ["Banking Functions"]
$3bfe = BankingInit
SECTION: $3c0d-$3c16 ($000a bytes) ["OAM DMA Code"]
$3c0d = OAMDMA
$3c17 = OAMDMAEnd
EMPTY: $3c17-$3fff ($03e9 bytes)
TOTAL EMPTY: $03f4 bytes
$31c5 = CheckAndAddHiscore.oldungraded
$31cc = CheckAndAddHiscore.checklevel
$31f1 = CheckAndAddHiscore.checkscore
$3234 = CheckAndAddHiscore.notbetter
$3241 = CheckAndAddHiscore.better
$3243 = InsertHiScore
$3243 = InsertHiScore.copylower
$3254 = InsertHiScore.copyupper
$3261 = !0
$3275 = InsertHiScore.findrow
$3282 = !1
$3286 = InsertHiScore.insert
$32df = InsertHiScore.persist
$32f0 = GetHiScoreEntry
$3305 = !2
$3309 = GetHiScoreEntry.store
$3312 = InitTargetHSTable
$331d = InitTargetHSTable.jumps
$3332 = InitTargetHSTable.dmgt
$3337 = InitTargetHSTable.tgm1
$333c = InitTargetHSTable.tgm3
$3341 = InitTargetHSTable.deat
$3346 = InitTargetHSTable.shir
$334b = InitTargetHSTable.chil
$3350 = InitTargetHSTable.myco
$3353 = InitTargetHSTable.store
SECTION: $3366-$34af ($014a bytes) ["Progress Data"]
$3366 = sProgressData
SECTION: $34b0-$35ef ($0140 bytes) ["Hi Score Data"]
$34b0 = sHiscoreDefaultData
SECTION: $35f0-$3723 ($0134 bytes) ["Input Functions"]
$35f0 = InputInit
$3602 = GetInput
$3602 = GetInput.btns
$360f = GetInput.readA
$3613 = GetInput.setA
$361e = GetInput.clearA
$3621 = GetInput.readB
$3625 = GetInput.setB
$3630 = GetInput.clearB
$3633 = GetInput.readSelect
$3637 = GetInput.setSelect
$3642 = GetInput.clearSelect
$3645 = GetInput.readStart
$3649 = GetInput.setStart
$3654 = GetInput.clearStart
$3657 = GetInput.dpad
$3664 = GetInput.readUp
$3668 = GetInput.setUp
$3673 = GetInput.clearUp
$3676 = GetInput.readDown
$367a = GetInput.setDown
$3685 = GetInput.clearDown
$3688 = GetInput.readLeft
$368c = GetInput.setLeft
$3697 = GetInput.clearLeft
$369a = GetInput.readRight
$369e = GetInput.setRight
$36a9 = GetInput.clearRight
$36ac = GetInput.priorities
$36b9 = GetInput.jumps
$36c8 = GetInput.dlru
$36db = GetInput.ulrd
$36ee = GetInput.lrud
$36fb = GetInput.udlr
$3708 = GetInput.zeroud
$370e = GetInput.zerolr
$3714 = GetInput.zerolrd
$371c = GetInput.zerolru
SECTION: $3724-$3803 ($00e0 bytes) ["Score Functions"]
$3724 = ScoreInit
$374c = IncreaseScore
$3784 = IncreaseScore.doConvert
$3786 = !0
$379c = IncreaseScore.carry
$379e = IncreaseScore.postConvert
$37ab = !1
$37b2 = IncreaseScore.preAddDigit
$37da = IncreaseScore.addDigit
$37f0 = IncreaseScore.nextDigit
SECTION: $3804-$38ce ($00cb bytes) ["Title Function Trampolines"]
$3804 = SwitchToTitle
$380d = TitleEventLoopHandler
$3817 = TitleVBlankHandler
$3821 = PersistLevel
$382f = DrawSpeedMain
$387f = DrawSpeedSettings
SECTION: $38cf-$3994 ($00c6 bytes) ["Time Functions"]
$38cf = TimeInit
$38ef = StartCountdown
$38fd = ResetGameTime
$3908 = CheckTorikan
$391f = CheckTorikan.failure
$3921 = CheckTorikan.success
$3924 = HandleTimers
$394a = HandleTimers.reduce
$3957 = HandleTimers.clock
$3971 = HandleTimers.go
SECTION: $3995-$3a46 ($00b2 bytes) ["Progress Functions"]
$3995 = SetProgress
$39a0 = SetProgress.loop
$39a4 = SetProgress.correct
$39cb = SetProgress.wvr_u1
$39d7 = SetProgress.wvr_u2
$39e5 = SetProgress.wvr_u3
$39f1 = SetProgress.wvr_u4
$39ff = SetProgress.wvr_u5
$3a0b = SetProgress.wvr_u6
$3a19 = SetProgress.wvr_u7
$3a25 = SetProgress.wvr_u8
$3a33 = SetProgress.wvr_u9
$3a3f = SetProgress.wvr_u10
SECTION: $3a47-$3ad8 ($0092 bytes) ["Code Entry Point"]
$3a47 = Main
$3a70 = Main.notgbc
$3a76 = Main.wvr_u1
$3a9d = EventLoop
$3ab3 = EventLoop.eventloopjumps
$3abc = EventLoopPostHandler
$3abe = EventLoopPostHandler.wvb_u2
$3ad0 = EventLoopPostHandler.vblankjumps
SECTION: $3ad9-$3b2a ($0052 bytes) ["Tile Functions"]
$3ad9 = LoadTitleTiles
$3af7 = LoadGameplayTiles
$3b0d = LoadGameplayTiles.gbc
$3b1c = LoadGameplayTiles.dmg
SECTION: $3b2b-$3b66 ($003c bytes) ["Time Data"]
$3b2b = sFramesToCS
SECTION: $3b67-$3b94 ($002e bytes) ["Memory Functions"]
$3b67 = UnsafeMemCopy
$3b70 = SafeMemCopy.wvr_u1
$3b70 = SafeMemCopy
$3b7f = UnsafeMemSet
$3b87 = SafeMemSet
$3b87 = SafeMemSet.wvr_u2
SECTION: $3b95-$3bba ($0026 bytes) ["Gameplay Function Trampolines"]
$3b95 = SwitchToGameplay
$3b9e = SwitchToGameplayBig
$3ba7 = GamePlayEventLoopHandler
$3bb1 = GamePlayBigEventLoopHandler
SECTION: $3bbb-$3bdf ($0025 bytes) ["Interrupt Initialization Functions"]
$3bbb = EnableScreenSquish
$3bd5 = DisableScreenSquish
SECTION: $3be0-$3c01 ($0022 bytes) ["OAM Functions"]
$3be0 = CopyOAMHandler
$3bec = ClearOAM
SECTION: $3c02-$3c10 ($000f bytes) ["Banking Functions"]
$3c02 = BankingInit
SECTION: $3c11-$3c1a ($000a bytes) ["OAM DMA Code"]
$3c11 = OAMDMA
$3c1b = OAMDMAEnd
EMPTY: $3c1b-$3fff ($03e5 bytes)
TOTAL EMPTY: $03f0 bytes
ROMX bank #1:
SECTION: $4000-$4007 ($0008 bytes) ["Bank ID BANK_OTHER"]
@ -3290,7 +3290,7 @@ HRAM bank #0:
TOTAL EMPTY: $0002 bytes
SUMMARY:
ROM0: 15372 bytes used / 1012 free
ROM0: 15376 bytes used / 1008 free
ROMX: 68697 bytes used / 29607 free in 6 banks
SRAM: 2951 bytes used / 5241 free in 1 bank
WRAM0: 3909 bytes used / 187 free

Binary file not shown.

View File

@ -334,136 +334,136 @@
00:31a8 CheckAndAddHiscore.checkloop
00:31ad CheckAndAddHiscore.checkgrade
00:31b6 CheckAndAddHiscore.oldgraded
00:31c1 CheckAndAddHiscore.oldungraded
00:31c8 CheckAndAddHiscore.checklevel
00:31ed CheckAndAddHiscore.checkscore
00:3230 CheckAndAddHiscore.notbetter
00:323d CheckAndAddHiscore.better
00:323f InsertHiScore
00:323f InsertHiScore.copylower
00:3250 InsertHiScore.copyupper
00:3271 InsertHiScore.findrow
00:3282 InsertHiScore.insert
00:32db InsertHiScore.persist
00:32ec GetHiScoreEntry
00:3305 GetHiScoreEntry.store
00:330e InitTargetHSTable
00:3319 InitTargetHSTable.jumps
00:332e InitTargetHSTable.dmgt
00:3333 InitTargetHSTable.tgm1
00:3338 InitTargetHSTable.tgm3
00:333d InitTargetHSTable.deat
00:3342 InitTargetHSTable.shir
00:3347 InitTargetHSTable.chil
00:334c InitTargetHSTable.myco
00:334f InitTargetHSTable.store
00:3362 sProgressData
00:34ac sHiscoreDefaultData
00:35ec InputInit
00:35fe GetInput
00:35fe GetInput.btns
00:360b GetInput.readA
00:360f GetInput.setA
00:361a GetInput.clearA
00:361d GetInput.readB
00:3621 GetInput.setB
00:362c GetInput.clearB
00:362f GetInput.readSelect
00:3633 GetInput.setSelect
00:363e GetInput.clearSelect
00:3641 GetInput.readStart
00:3645 GetInput.setStart
00:3650 GetInput.clearStart
00:3653 GetInput.dpad
00:3660 GetInput.readUp
00:3664 GetInput.setUp
00:366f GetInput.clearUp
00:3672 GetInput.readDown
00:3676 GetInput.setDown
00:3681 GetInput.clearDown
00:3684 GetInput.readLeft
00:3688 GetInput.setLeft
00:3693 GetInput.clearLeft
00:3696 GetInput.readRight
00:369a GetInput.setRight
00:36a5 GetInput.clearRight
00:36a8 GetInput.priorities
00:36b5 GetInput.jumps
00:36c4 GetInput.dlru
00:36d7 GetInput.ulrd
00:36ea GetInput.lrud
00:36f7 GetInput.udlr
00:3704 GetInput.zeroud
00:370a GetInput.zerolr
00:3710 GetInput.zerolrd
00:3718 GetInput.zerolru
00:3720 ScoreInit
00:3748 IncreaseScore
00:3780 IncreaseScore.doConvert
00:3798 IncreaseScore.carry
00:379a IncreaseScore.postConvert
00:37ae IncreaseScore.preAddDigit
00:37d6 IncreaseScore.addDigit
00:37ec IncreaseScore.nextDigit
00:3800 SwitchToTitle
00:3809 TitleEventLoopHandler
00:3813 TitleVBlankHandler
00:381d PersistLevel
00:382b DrawSpeedMain
00:387b DrawSpeedSettings
00:38cb TimeInit
00:38eb StartCountdown
00:38f9 ResetGameTime
00:3904 CheckTorikan
00:391b CheckTorikan.failure
00:391d CheckTorikan.success
00:3920 HandleTimers
00:3946 HandleTimers.reduce
00:3953 HandleTimers.clock
00:396d HandleTimers.go
00:3991 SetProgress
00:399c SetProgress.loop
00:39a0 SetProgress.correct
00:39c7 SetProgress.wvr_u1
00:39d3 SetProgress.wvr_u2
00:39e1 SetProgress.wvr_u3
00:39ed SetProgress.wvr_u4
00:39fb SetProgress.wvr_u5
00:3a07 SetProgress.wvr_u6
00:3a15 SetProgress.wvr_u7
00:3a21 SetProgress.wvr_u8
00:3a2f SetProgress.wvr_u9
00:3a3b SetProgress.wvr_u10
00:3a43 Main
00:3a6c Main.notgbc
00:3a72 Main.wvr_u1
00:3a99 EventLoop
00:3aaf EventLoop.eventloopjumps
00:3ab8 EventLoopPostHandler
00:3aba EventLoopPostHandler.wvb_u2
00:3acc EventLoopPostHandler.vblankjumps
00:3ad5 LoadTitleTiles
00:3af3 LoadGameplayTiles
00:3b09 LoadGameplayTiles.gbc
00:3b18 LoadGameplayTiles.dmg
00:3b27 sFramesToCS
00:3b63 UnsafeMemCopy
00:3b6c SafeMemCopy.wvr_u1
00:3b6c SafeMemCopy
00:3b7b UnsafeMemSet
00:3b83 SafeMemSet
00:3b83 SafeMemSet.wvr_u2
00:3b91 SwitchToGameplay
00:3b9a SwitchToGameplayBig
00:3ba3 GamePlayEventLoopHandler
00:3bad GamePlayBigEventLoopHandler
00:3bb7 EnableScreenSquish
00:3bd1 DisableScreenSquish
00:3bdc CopyOAMHandler
00:3be8 ClearOAM
00:3bfe BankingInit
00:3c0d OAMDMA
00:3c17 OAMDMAEnd
00:31c5 CheckAndAddHiscore.oldungraded
00:31cc CheckAndAddHiscore.checklevel
00:31f1 CheckAndAddHiscore.checkscore
00:3234 CheckAndAddHiscore.notbetter
00:3241 CheckAndAddHiscore.better
00:3243 InsertHiScore
00:3243 InsertHiScore.copylower
00:3254 InsertHiScore.copyupper
00:3275 InsertHiScore.findrow
00:3286 InsertHiScore.insert
00:32df InsertHiScore.persist
00:32f0 GetHiScoreEntry
00:3309 GetHiScoreEntry.store
00:3312 InitTargetHSTable
00:331d InitTargetHSTable.jumps
00:3332 InitTargetHSTable.dmgt
00:3337 InitTargetHSTable.tgm1
00:333c InitTargetHSTable.tgm3
00:3341 InitTargetHSTable.deat
00:3346 InitTargetHSTable.shir
00:334b InitTargetHSTable.chil
00:3350 InitTargetHSTable.myco
00:3353 InitTargetHSTable.store
00:3366 sProgressData
00:34b0 sHiscoreDefaultData
00:35f0 InputInit
00:3602 GetInput
00:3602 GetInput.btns
00:360f GetInput.readA
00:3613 GetInput.setA
00:361e GetInput.clearA
00:3621 GetInput.readB
00:3625 GetInput.setB
00:3630 GetInput.clearB
00:3633 GetInput.readSelect
00:3637 GetInput.setSelect
00:3642 GetInput.clearSelect
00:3645 GetInput.readStart
00:3649 GetInput.setStart
00:3654 GetInput.clearStart
00:3657 GetInput.dpad
00:3664 GetInput.readUp
00:3668 GetInput.setUp
00:3673 GetInput.clearUp
00:3676 GetInput.readDown
00:367a GetInput.setDown
00:3685 GetInput.clearDown
00:3688 GetInput.readLeft
00:368c GetInput.setLeft
00:3697 GetInput.clearLeft
00:369a GetInput.readRight
00:369e GetInput.setRight
00:36a9 GetInput.clearRight
00:36ac GetInput.priorities
00:36b9 GetInput.jumps
00:36c8 GetInput.dlru
00:36db GetInput.ulrd
00:36ee GetInput.lrud
00:36fb GetInput.udlr
00:3708 GetInput.zeroud
00:370e GetInput.zerolr
00:3714 GetInput.zerolrd
00:371c GetInput.zerolru
00:3724 ScoreInit
00:374c IncreaseScore
00:3784 IncreaseScore.doConvert
00:379c IncreaseScore.carry
00:379e IncreaseScore.postConvert
00:37b2 IncreaseScore.preAddDigit
00:37da IncreaseScore.addDigit
00:37f0 IncreaseScore.nextDigit
00:3804 SwitchToTitle
00:380d TitleEventLoopHandler
00:3817 TitleVBlankHandler
00:3821 PersistLevel
00:382f DrawSpeedMain
00:387f DrawSpeedSettings
00:38cf TimeInit
00:38ef StartCountdown
00:38fd ResetGameTime
00:3908 CheckTorikan
00:391f CheckTorikan.failure
00:3921 CheckTorikan.success
00:3924 HandleTimers
00:394a HandleTimers.reduce
00:3957 HandleTimers.clock
00:3971 HandleTimers.go
00:3995 SetProgress
00:39a0 SetProgress.loop
00:39a4 SetProgress.correct
00:39cb SetProgress.wvr_u1
00:39d7 SetProgress.wvr_u2
00:39e5 SetProgress.wvr_u3
00:39f1 SetProgress.wvr_u4
00:39ff SetProgress.wvr_u5
00:3a0b SetProgress.wvr_u6
00:3a19 SetProgress.wvr_u7
00:3a25 SetProgress.wvr_u8
00:3a33 SetProgress.wvr_u9
00:3a3f SetProgress.wvr_u10
00:3a47 Main
00:3a70 Main.notgbc
00:3a76 Main.wvr_u1
00:3a9d EventLoop
00:3ab3 EventLoop.eventloopjumps
00:3abc EventLoopPostHandler
00:3abe EventLoopPostHandler.wvb_u2
00:3ad0 EventLoopPostHandler.vblankjumps
00:3ad9 LoadTitleTiles
00:3af7 LoadGameplayTiles
00:3b0d LoadGameplayTiles.gbc
00:3b1c LoadGameplayTiles.dmg
00:3b2b sFramesToCS
00:3b67 UnsafeMemCopy
00:3b70 SafeMemCopy.wvr_u1
00:3b70 SafeMemCopy
00:3b7f UnsafeMemSet
00:3b87 SafeMemSet
00:3b87 SafeMemSet.wvr_u2
00:3b95 SwitchToGameplay
00:3b9e SwitchToGameplayBig
00:3ba7 GamePlayEventLoopHandler
00:3bb1 GamePlayBigEventLoopHandler
00:3bbb EnableScreenSquish
00:3bd5 DisableScreenSquish
00:3be0 CopyOAMHandler
00:3bec ClearOAM
00:3c02 BankingInit
00:3c11 OAMDMA
00:3c1b OAMDMAEnd
01:4008 sDMGTSpeedCurve
01:4203 sDMGTSpeedCurveEnd
01:4205 sDMGTSpeedCurveSpecialData

View File

@ -88,6 +88,8 @@ CheckAndAddHiscore::
.oldgraded
ld b, a
ld a, [wDisplayedGrade]
cp a, GRADE_NONE
jr z, .notbetter ; If we don't have a grade, we're worse than any grade.
cp a, b
jr c, .notbetter ; If we're less, we're not better.
jr nz, .better ; If we're higher, we're better.