Skip to content

Commit c7697ce

Browse files
authored
Skylanders: Use r3 in the falling respawn fixes (#708)
1 parent 9bf5379 commit c7697ce

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/SkylandersSuperChargers/Mods/FPS/patch_FixInfiniteFall.asm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ const_stuckFallingDistanceThreshold:
66
.float 20*30/$targetFPS
77

88
_getStuckFallingDistanceThreshold_f13:
9-
lis r0, const_stuckFallingDistanceThreshold@ha
10-
lfs f13, const_stuckFallingDistanceThreshold@l(r0)
9+
lis r3, const_stuckFallingDistanceThreshold@ha
10+
lfs f13, const_stuckFallingDistanceThreshold@l(r3)
1111
blr
1212

1313
_getStuckFallingDistanceThreshold_f0:
14-
lis r0, const_stuckFallingDistanceThreshold@ha
15-
lfs f0, const_stuckFallingDistanceThreshold@l(r0)
14+
lis r3, const_stuckFallingDistanceThreshold@ha
15+
lfs f0, const_stuckFallingDistanceThreshold@l(r3)
1616
blr
1717

1818
[SSC_FixInfiniteFall_V1]

src/SkylandersSwapForce/Mods/FPS/patch_FixInfiniteFall.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const_stuckFallingDistanceThreshold:
66
.float 20*30/$targetFPS
77

88
_getStuckFallingDistanceThreshold:
9-
lis r0, const_stuckFallingDistanceThreshold@ha
10-
lfs f0, const_stuckFallingDistanceThreshold@l(r0)
9+
lis r3, const_stuckFallingDistanceThreshold@ha
10+
lfs f0, const_stuckFallingDistanceThreshold@l(r3)
1111
blr
1212

1313
[SSF_FixInfiniteFall_V16]

0 commit comments

Comments
 (0)