MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zSceneUpdate

Function zSceneUpdate

src/SB/Game/zScene.cpp:2709–2964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2707}
2708
2709void zSceneUpdate(F32 dt)
2710{
2711 U32 i;
2712 S32 isPaused;
2713 zScene* s;
2714 xBase** b;
2715
2716 if (0.0f == dt)
2717 {
2718 return;
2719 }
2720
2721 isPaused = zGameIsPaused();
2722 gSceneUpdateTime = dt;
2723
2724 if (!isPaused)
2725 {
2726 zEntPickup_SceneUpdate(dt);
2727 zEntButton_SceneUpdate(dt);
2728 }
2729
2730 xEntSetTimePassed(dt);
2731
2732 if (globals.cmgr)
2733 {
2734 zCutsceneMgrUpdate(globals.cmgr, globals.sceneCur, dt);
2735 }
2736
2737 s = globals.sceneCur;
2738 b = s->update_base;
2739
2740 gUIMgr.PreUpdate(s, dt);
2741
2742 if (s->baseCount[eBaseTypeUIFont])
2743 {
2744 zUIFont* ui = (zUIFont*)s->baseList[eBaseTypeUIFont];
2745
2746 for (i = 0; i < s->baseCount[eBaseTypeUIFont]; i++)
2747 {
2748 zUIFont_PreUpdate(&ui[i], s, dt);
2749 }
2750 }
2751
2752 if (!isPaused)
2753 {
2754 zNPCMgr_sceneTimestep(s, dt);
2755 }
2756 else if (s->sceneID == 'B101')
2757 {
2758 zNPCBSandy_GameIsPaused(s);
2759 }
2760 else if (s->sceneID == 'B201')
2761 {
2762 zNPCBPatrick_GameIsPaused(s);
2763 }
2764
2765 ztextbox::update_all(*s, dt);
2766 ztalkbox::update_all(*s, dt);

Callers 2

zSaveLoad_TickFunction · 0.70
zMenuLoopFunction · 0.70

Calls 15

zGameIsPausedFunction · 0.85
zEntButton_SceneUpdateFunction · 0.85
xEntSetTimePassedFunction · 0.85
zUIFont_PreUpdateFunction · 0.85
zNPCBSandy_GameIsPausedFunction · 0.85
xVec3DistFunction · 0.85
xFogUpdateFunction · 0.85
zCameraFly_UpdateFunction · 0.85
xClimateUpdateFunction · 0.85
zFXUpdateFunction · 0.85
xCMupdateFunction · 0.85

Tested by

no test coverage detected