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

Function xCameraUpdate

src/SB/Core/x/xCamera.cpp:886–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886void xCameraUpdate(xCamera* cam, F32 dt)
887{
888 S32 i;
889 S32 num_updates;
890 F32 sdt;
891
892 num_updates = std::ceilf(144.0f * dt);
893
894 sdt = dt / num_updates;
895
896 for (i = 0; i < num_updates; i++)
897 {
898 sCamCollis = (i == num_updates - 1);
899
900 _xCameraUpdate(cam, sdt);
901 }
902}
903
904#ifndef INLINE
905float std::ceilf(float x)

Callers 3

startMethod · 0.50
zCameraRewardUpdateFunction · 0.50
zMenuSetupFunction · 0.50

Calls 1

_xCameraUpdateFunction · 0.70

Tested by

no test coverage detected