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

Function zCameraFlyProcessStopEvent

src/SB/Game/zCameraFly.cpp:55–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55U32 zCameraFlyProcessStopEvent()
56{
57 zScene* s = globals.sceneCur;
58
59 if (!zCamera_FlyOnly())
60 {
61 zMusicSetVolume(1.0f, 2.0f);
62 }
63
64 for (U16 i = 0; i < s->num_base; i++)
65 {
66 xBase* entry = s->base[i];
67 if (entry->baseType == eBaseTypeCameraFly)
68 {
69 U32 id = ((zCameraFly*)entry)->casset->flyID;
70 if (id == zcam_flyasset_current)
71 {
72 zEntEvent(entry, eEventStop);
73 return 1;
74 }
75 }
76 }
77
78 return 0;
79}
80
81S32 zCameraFlyEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* b3)
82{

Callers

nothing calls this directly

Calls 3

zCamera_FlyOnlyFunction · 0.85
zMusicSetVolumeFunction · 0.85
zEntEventFunction · 0.50

Tested by

no test coverage detected