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

Function zGameExtras_SceneInit

src/SB/Game/zGameExtras.cpp:41–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void zGameExtras_SceneInit()
42{
43 g_enableGameExtras = 0;
44 g_currDay = iGetDay();
45 g_currMonth = iGetMonth();
46 S32 somethingIsEnabled = 0;
47
48 EGGItem* egg_next = g_eggBasket;
49
50 while (egg_next->fun_check)
51 {
52 EGGItem* egg = egg_next++;
53
54 egg->enabled = egg->fun_check(egg);
55
56 if (egg->enabled)
57 {
58 somethingIsEnabled++;
59
60 if (egg->funcs->fun_init)
61 {
62 egg->funcs->fun_init(egg);
63 }
64 }
65 }
66
67 if (somethingIsEnabled)
68 {
69 g_enableGameExtras = 1;
70 }
71}
72
73void zGameExtras_SceneReset()
74{

Callers 1

zGameSetupFunction · 0.70

Calls 2

iGetDayFunction · 0.50
iGetMonthFunction · 0.50

Tested by

no test coverage detected