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

Function NPAR_Timestep

src/SB/Game/zNPCSupplement.cpp:417–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void NPAR_Timestep(F32 dt)
418{
419 S32 isPawzd = zGameIsPaused();
420 S32 isCine = (globals.cmgr != NULL) && (((xCutsceneMgr*)(globals.cmgr))->csn != NULL);
421 NPAR_CheckSpecials();
422 NPARMgmt* mgr;
423 for (S32 i = 0; i < 12; i++, mgr++)
424 {
425 mgr = &g_npar_mgmt[i];
426 if (1 <= mgr->cnt_active)
427 {
428 if (!isPawzd || ((mgr->flg_npar & 1)))
429 {
430 if (!isCine || ((mgr->flg_npar & 2)))
431 {
432 mgr->UpdateAndRender(dt);
433 }
434 }
435 }
436 }
437}
438
439NPARMgmt* NPAR_PartySetup(en_nparptyp parType, void** userData, NPARXtraData* xtraData)
440{

Callers 1

NPCSupplement_TimestepFunction · 0.70

Calls 3

zGameIsPausedFunction · 0.85
NPAR_CheckSpecialsFunction · 0.85
UpdateAndRenderMethod · 0.80

Tested by

no test coverage detected