diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2026-09-16 09:01:55 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-16 09:01:55 -0600 |
| commit | 60ac50c9628d25968bfe367e1b4b6f030078be64 (patch) | |
| tree | e03a0d825cfe443adcf076cb643c20692151f431 /src/replays.c | |
| parent | 7adfdaa9abb18d76ae80f26bff58c2c4dc4f3f29 (diff) | |
| parent | 8fb42e50d70356300050048b57def3123e6d4552 (diff) | |
Merge branch 'main' into Caladius-patch-1Caladius-patch-1
Diffstat (limited to 'src/replays.c')
| -rw-r--r-- | src/replays.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/replays.c b/src/replays.c index 2ba389f95..66b664744 100644 --- a/src/replays.c +++ b/src/replays.c @@ -130,9 +130,10 @@ s32 func_800051C4(void) { if (sReplayGhostBufferSize != 0) { // func_80040174 in mio0_decode.s - func_80040174((void*) sReplayGhostBuffer, (sReplayGhostBufferSize * 4) + 0x20, (s32) sReplayGhostEncoded); - phi_v0 = - mio0encode((s32) sReplayGhostEncoded, (sReplayGhostBufferSize * 4) + 0x20, (s32) gReplayGhostCompressed); + func_80040174((void*) sReplayGhostBuffer, (sReplayGhostBufferSize * 4) + 0x20, + (s32) (uintptr_t) sReplayGhostEncoded); + phi_v0 = mio0encode((uintptr_t) sReplayGhostEncoded, (sReplayGhostBufferSize * 4) + 0x20, + (uintptr_t) gReplayGhostCompressed); return phi_v0 + 0x1e; } // Empty buffer used to fall off the end; report zero encoded size (the @@ -450,7 +451,7 @@ void save_player_replay(void) { it says "these inputs were played for __ frames" */ prevInputs = prevInputsWCounter & REPLAY_CLEAR_FRAME_COUNTER; // first frame of inputs - if ((*sPlayerInputs) == -1) { + if ((*sPlayerInputs) == (u32) -1) { sPlayerInputs[sPlayerInputIdx] = inputs; |
