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

Function zCameraUpdate

src/SB/Game/zCamera.cpp:681–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679}
680
681void zCameraUpdate(xCamera* camera, F32 dt)
682{
683 U32 sceneId = globals.sceneCur->sceneID;
684
685 if (sceneId == 'HB01' ||
686 // HB02 intentionally omitted
687 sceneId == 'HB03' || sceneId == 'HB04' || sceneId == 'HB06' || sceneId == 'HB07' ||
688 sceneId == 'HB08' || sceneId == 'HB09' || sceneId == 'HB10')
689 {
690 zcam_near |= 0x2;
691 }
692 else
693 {
694 zcam_near &= 0x1;
695 }
696
697 zCameraTweakGlobal_Update(dt);
698
699 // Placeholder usage of floats to match data section.
700 camera->dcd = 30.0f;
701 camera->dcd = 0.0000099999997f;
702 camera->dcd = 12.139999f;
703}
704
705void zCameraSetBbounce(S32 bbouncing)
706{

Callers 2

zSaveLoad_TickFunction · 0.70
zMenuLoopFunction · 0.70

Calls 1

Tested by

no test coverage detected