From 5baba51f282f430205ddfd459460a22e006f3487 Mon Sep 17 00:00:00 2001 From: escape209 Date: Wed, 31 Jul 2024 16:26:07 +0100 Subject: [PATCH 1/3] zMain things --- src/SB/Game/zMain.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/SB/Game/zMain.cpp b/src/SB/Game/zMain.cpp index f38da9ac..994dbb4a 100644 --- a/src/SB/Game/zMain.cpp +++ b/src/SB/Game/zMain.cpp @@ -1,7 +1,30 @@ +#include "zGlobals.h" #include "zMain.h" +#include #include void iEnvStartup() { } + +void zMainOutputMgrSetup() +{ + iTime tim = iTimeGet(); + iTimeDiffSec(tim); + iTimeGet(); +} + +void zMainInitGlobals() +{ + memset(&globals, 0, 0x1fc8); + globals.sceneFirst = 1; + iTime tim = iTimeGet(); + iTimeDiffSec(tim); + iTimeGet(); +} + +void zMainMemLvlChkCB() +{ + zSceneMemLvlChkCB(); +} \ No newline at end of file From 5bab87254ef73e76f5fcde81e2d5de172253e040 Mon Sep 17 00:00:00 2001 From: escape209 Date: Wed, 31 Jul 2024 23:23:31 +0100 Subject: [PATCH 2/3] Match zLedgeAdjust --- src/SB/Game/zMain.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/SB/Game/zMain.cpp b/src/SB/Game/zMain.cpp index 994dbb4a..27c2b415 100644 --- a/src/SB/Game/zMain.cpp +++ b/src/SB/Game/zMain.cpp @@ -1,3 +1,4 @@ +#include "zEntPlayer.h" #include "zGlobals.h" #include "zMain.h" @@ -27,4 +28,9 @@ void zMainInitGlobals() void zMainMemLvlChkCB() { zSceneMemLvlChkCB(); -} \ No newline at end of file +} + +void zLedgeAdjust(zLedgeGrabParams* params) +{ + params->animGrab *= (1.0f/30); +} \ No newline at end of file From abebb0a70cc4230c5c8503b541262d644f1baceb Mon Sep 17 00:00:00 2001 From: escape209 Date: Wed, 31 Jul 2024 23:44:03 +0100 Subject: [PATCH 3/3] Update src/SB/Game/zMain.cpp Co-authored-by: Thomas --- src/SB/Game/zMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SB/Game/zMain.cpp b/src/SB/Game/zMain.cpp index 27c2b415..88d6b341 100644 --- a/src/SB/Game/zMain.cpp +++ b/src/SB/Game/zMain.cpp @@ -18,7 +18,7 @@ void zMainOutputMgrSetup() void zMainInitGlobals() { - memset(&globals, 0, 0x1fc8); + memset(&globals, 0, sizeof(zGlobals)); globals.sceneFirst = 1; iTime tim = iTimeGet(); iTimeDiffSec(tim);