[BotW] Fix mastercycle charged boost in FPS++

Previously it wasn't possible to rev your mastercycle to get a charged speed boost. Should be fixed now!
This commit is contained in:
Crementif 2023-04-18 03:15:12 +02:00
parent 2cfeafa453
commit 2b2e3f17ac
No known key found for this signature in database
GPG Key ID: 43903308F77B6C3B
3 changed files with 22 additions and 5 deletions

View File

@ -183,8 +183,8 @@ fmuls f12, f7, f12
; Subtract the time that it took for the actual frame to render and make sure that it's not negative (which means a frame already took longer to render then the FPS limit)
fsubs f12, f12, f10
lis r12, const_0.0@ha
lfs f7, const_0.0@l(r12)
lis r11, const_0.0@ha
lfs f7, const_0.0@l(r11)
fcmpu cr0, f7, f12
ble .+0x8
fmr f12, f7

View File

@ -11,13 +11,13 @@ const_0.0:
const_0.5:
.float 0.5
const_1:
.float 1
.float 1.0
const_1.5:
.float 1.5
const_30:
.float 30
.float 30.0
const_60:
.float 60
.float 60.0
timerTickSpeed:
busSpeed:

View File

@ -0,0 +1,17 @@
[BotW_MastercycleSpeed_V208]
moduleMatches = 0x6267BFD0
.origin = codecave
0x100136B4 = originalMotorcycleBoostSpeed:
_changeMotorcycleBoostSpeed:
lfs f0, originalMotorcycleBoostSpeed@l(r9)
lis r9, averageFPS1@ha
lfs f8, averageFPS1@l(r9)
fdivs f0, f0, f8
blr
0x0209FFC0 = bla _changeMotorcycleBoostSpeed