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

Function zGameScreenTransitionEnd

src/SB/Game/zGame.cpp:1067–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065}
1066
1067void zGameScreenTransitionEnd()
1068{
1069 RwFrame* frame;
1070 gGameWhereAmI = eGameWhere_TransitionEnd;
1071 _rwFrameSyncDirty();
1072 if (DirectionalLight != NULL)
1073 {
1074 frame = (RwFrame*)(DirectionalLight->object).object.parent;
1075 if (frame != NULL)
1076 {
1077 RwFrameDestroy(frame);
1078 }
1079 RpLightDestroy(DirectionalLight);
1080 DirectionalLight = 0;
1081 }
1082 if (World != NULL)
1083 {
1084 if (sGameScreenTransCam != NULL)
1085 {
1086 RpWorldRemoveCamera(World, sGameScreenTransCam);
1087 iCameraDestroy(sGameScreenTransCam);
1088 sGameScreenTransCam = 0;
1089 }
1090 RpWorldDestroy(World);
1091 World = 0;
1092 }
1093 gGameWhereAmI = eGameWhere_TransitionEnded;
1094}
1095
1096void zGameSetupPlayer()
1097{

Callers 1

zSceneInitFunction · 0.70

Calls 1

iCameraDestroyFunction · 0.50

Tested by

no test coverage detected