Skip to content

Commit

Permalink
zMain things (#337)
Browse files Browse the repository at this point in the history
* zMain things

* Match zLedgeAdjust

* Update src/SB/Game/zMain.cpp

Co-authored-by: Thomas <[email protected]>

---------

Co-authored-by: Thomas <[email protected]>
  • Loading branch information
escape209 and tgsm authored Aug 1, 2024
1 parent 67194d3 commit 6cdd771
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/SB/Game/zMain.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
#include "zEntPlayer.h"
#include "zGlobals.h"
#include "zMain.h"

#include <string.h>
#include <types.h>

void iEnvStartup()
{
}

void zMainOutputMgrSetup()
{
iTime tim = iTimeGet();
iTimeDiffSec(tim);
iTimeGet();
}

void zMainInitGlobals()
{
memset(&globals, 0, sizeof(zGlobals));
globals.sceneFirst = 1;
iTime tim = iTimeGet();
iTimeDiffSec(tim);
iTimeGet();
}

void zMainMemLvlChkCB()
{
zSceneMemLvlChkCB();
}

void zLedgeAdjust(zLedgeGrabParams* params)
{
params->animGrab *= (1.0f/30);
}

0 comments on commit 6cdd771

Please sign in to comment.