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

Function zCutsceneMgrFinishExit

src/SB/Game/zCutsceneMgr.cpp:314–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314void zCutsceneMgrFinishExit(xBase* to)
315{
316 zCutsceneMgr* t = (zCutsceneMgr*)to;
317
318 while (1)
319 {
320 iFileAsyncService();
321 xSndUpdate();
322 if (t->csn->Waiting == 0)
323 break;
324 iVSync();
325 }
326 if (donpcfx != 0)
327 {
328 zNPCFXCutsceneDone(globals.sceneCur, 0.0f, t);
329 }
330 donpcfx = 0;
331 if (xCutscene_Destroy(t->csn) == 0)
332 {
333 return;
334 }
335
336 zEntEvent(&globals.player.ent, 9);
337 zEntEvent(&globals.player.ent, 3);
338 zCutsceneMgrKillFX(t);
339 t->csn = NULL;
340 globals.cmgr = NULL;
341}
342
343void zCutsceneMgrKillFX(zCutsceneMgr* t)
344{

Callers 1

zGameUpdateModeFunction · 0.70

Calls 7

xSndUpdateFunction · 0.85
iVSyncFunction · 0.85
zNPCFXCutsceneDoneFunction · 0.85
zCutsceneMgrKillFXFunction · 0.85
iFileAsyncServiceFunction · 0.50
xCutscene_DestroyFunction · 0.50
zEntEventFunction · 0.50

Tested by

no test coverage detected