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

Function zGameExtras_SceneExit

src/SB/Game/zGameExtras.cpp:96–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void zGameExtras_SceneExit()
97{
98 if (!g_enableGameExtras)
99 {
100 return;
101 }
102
103 if (globals.cmgr)
104 {
105 return;
106 }
107
108 if (zGameIsPaused())
109 {
110 return;
111 }
112
113 EGGItem* egg_next = g_eggBasket;
114
115 while (egg_next->fun_check)
116 {
117 EGGItem* egg = egg_next++;
118
119 if (egg->enabled)
120 {
121 egg->enabled = 0;
122
123 if (egg->funcs->fun_done)
124 {
125 egg->funcs->fun_done(egg);
126 }
127 }
128 }
129
130 g_enableGameExtras = 0;
131 g_currDay = 0;
132 g_currMonth = 0;
133}
134
135void zGameExtras_SceneUpdate(F32 dt)
136{

Callers 1

zGameExitFunction · 0.70

Calls 1

zGameIsPausedFunction · 0.85

Tested by

no test coverage detected