Skip to content

Commit 2b2e3f1

Browse files
committed
[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!
1 parent 2cfeafa commit 2b2e3f1

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

src/BreathOfTheWild/Mods/FPS++/patch_Cutscene.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ fmuls f12, f7, f12
183183

184184
; 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)
185185
fsubs f12, f12, f10
186-
lis r12, const_0.0@ha
187-
lfs f7, const_0.0@l(r12)
186+
lis r11, const_0.0@ha
187+
lfs f7, const_0.0@l(r11)
188188
fcmpu cr0, f7, f12
189189
ble .+0x8
190190
fmr f12, f7

src/BreathOfTheWild/Mods/FPS++/patch_GameSpeed.asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ const_0.0:
1111
const_0.5:
1212
.float 0.5
1313
const_1:
14-
.float 1
14+
.float 1.0
1515
const_1.5:
1616
.float 1.5
1717
const_30:
18-
.float 30
18+
.float 30.0
1919
const_60:
20-
.float 60
20+
.float 60.0
2121

2222
timerTickSpeed:
2323
busSpeed:
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[BotW_MastercycleSpeed_V208]
2+
moduleMatches = 0x6267BFD0
3+
4+
.origin = codecave
5+
6+
0x100136B4 = originalMotorcycleBoostSpeed:
7+
8+
9+
_changeMotorcycleBoostSpeed:
10+
lfs f0, originalMotorcycleBoostSpeed@l(r9)
11+
lis r9, averageFPS1@ha
12+
lfs f8, averageFPS1@l(r9)
13+
fdivs f0, f0, f8
14+
blr
15+
16+
17+
0x0209FFC0 = bla _changeMotorcycleBoostSpeed

0 commit comments

Comments
 (0)