From 8954d28dc482e84881f69073f9371c23ca6f754f Mon Sep 17 00:00:00 2001 From: Qlonever <42286723+Qlonever@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:40:25 -0500 Subject: [PATCH] reorder manually-constructed ranking data --- include/sf64save.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sf64save.h b/include/sf64save.h index e3ae8bf2..dd1ce7e2 100644 --- a/include/sf64save.h +++ b/include/sf64save.h @@ -32,7 +32,7 @@ typedef struct PlanetStats { #define PLANET_STATS(hitCount, planetId, peppyAlive, falcoAlive, slippyAlive) \ (hitCount > 255 ? hitCount - 256 : hitCount), \ - ((planetId << 4) | ((hitCount > 255 ? 1 : 0) << 3) | (peppyAlive << 2) | (falcoAlive << 1) | (slippyAlive)) + ((planetId) | ((hitCount > 255 ? 1 : 0) << 4) | (peppyAlive << 5) | (falcoAlive << 6) | (slippyAlive << 7)) typedef struct SaveData { /* 0x00 */ PlanetData planet[16];