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

Method BackdoorUpdateAllNPCsOnce

src/SB/Game/zNPCMgr.cpp:616–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616void zNPCMgr::BackdoorUpdateAllNPCsOnce(xScene* xscn, F32 dt)
617{
618 for (int i = 0; i < npclist.cnt; i++)
619 {
620 zNPCCommon* npc = (zNPCCommon*)npclist.list[i];
621 xSceneID2Name(globals.sceneCur, npc->id);
622
623 if (npc->baseFlags & 0x40 && npc->update != NULL)
624 {
625 npc->update(npc, xscn, 1.0f / 60);
626 }
627 }
628}
629
630void zNPCMgr::SceneTimestep(xScene* xscn, F32 dt)
631{

Callers

nothing calls this directly

Calls 2

xSceneID2NameFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected