summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2024-11-24 23:40:00 -0600
committerAlejandro Asenjo Nitti <96613413+sonicdcer@users.noreply.github.com>2024-11-25 02:50:15 -0300
commite34419b38edf41b1ea03a99c0b586030dbf20bf4 (patch)
tree524f705b86d60fec9a4d5344b4c47c2fc7cf7b89 /src/engine
parent0e39eed609760f6db8ff2a9109578a2e4066b02a (diff)
Add checkpoint developer tool (doesn't work perfectly)
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/fox_play.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/engine/fox_play.c b/src/engine/fox_play.c
index 38407a59..3e90db13 100644
--- a/src/engine/fox_play.c
+++ b/src/engine/fox_play.c
@@ -4647,6 +4647,13 @@ void Player_Setup(Player* playerx) {
gDisplayedHitCount = gHitCount;
D_hud_80161730 = 0;
+
+ if (CVarGetInteger("gCheckpoint.Set", 0)) {
+ gSavedGroundSurface = CVarGetInteger("gCheckpoint.gSavedGroundSurface", gSavedGroundSurface);
+ gSavedPathProgress = CVarGetFloat("gCheckpoint.gSavedPathProgress", gSavedPathProgress);
+ gSavedObjectLoadIndex = CVarGetInteger("gCheckpoint.gSavedObjectLoadIndex", gSavedObjectLoadIndex);
+ }
+
gMissedZoSearchlight = gSavedZoSearchlightStatus;
gObjectLoadIndex = gSavedObjectLoadIndex;
gGroundSurface = gSavedGroundSurface;