| 94 | } |
| 95 | |
| 96 | void 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 | |
| 135 | void zGameExtras_SceneUpdate(F32 dt) |
| 136 | { |
no test coverage detected