| 41 | } |
| 42 | |
| 43 | S32 zPortalEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* b3) |
| 44 | { |
| 45 | switch (toEvent) |
| 46 | { |
| 47 | case eEventReset: |
| 48 | { |
| 49 | zPortalReset((_zPortal*)to); |
| 50 | break; |
| 51 | } |
| 52 | case eEventTeleportPlayer: |
| 53 | { |
| 54 | if (globals.player.Health != 0) |
| 55 | { |
| 56 | zSceneSwitch((_zPortal*)to, false); |
| 57 | } |
| 58 | break; |
| 59 | } |
| 60 | } |
| 61 | return eEventEnable; |
| 62 | } |
nothing calls this directly
no test coverage detected