MCPcopy Create free account
hub / github.com/JACoders/OpenJK / CL_StartHunkUsers

Function CL_StartHunkUsers

code/client/cl_main.cpp:951–983  ·  view source on GitHub ↗

============================ CL_StartHunkUsers After the server has cleared the hunk, these will need to be restarted This is the only place that any of these functions are called from ============================ */

Source from the content-addressed store, hash-verified

949============================
950*/
951void CL_StartHunkUsers( void ) {
952 if ( !com_cl_running->integer ) {
953 return;
954 }
955
956 if ( !cls.rendererStarted ) {
957 cls.rendererStarted = qtrue;
958 CL_InitRenderer();
959 }
960
961 if ( !cls.soundStarted ) {
962 cls.soundStarted = qtrue;
963 S_Init();
964 }
965
966 if ( !cls.soundRegistered ) {
967 cls.soundRegistered = qtrue;
968 S_BeginRegistration();
969 }
970
971 //we require the ui to be loaded here or else it crashes trying to access the ui on command line map loads
972 if ( !cls.uiStarted ) {
973 cls.uiStarted = qtrue;
974 CL_InitUI();
975 }
976
977// if ( !cls.cgameStarted && cls.state > CA_CONNECTED && cls.state != CA_CINEMATIC ) {
978 if ( !cls.cgameStarted && cls.state > CA_CONNECTED && (cls.state != CA_CINEMATIC && !CL_IsRunningInGameCinematic()) )
979 {
980 cls.cgameStarted = qtrue;
981 CL_InitCGame();
982 }
983}
984
985/*
986================

Callers 5

CL_ParseGamestateFunction · 0.70
SCR_UpdateScreenFunction · 0.70
CL_Vid_Restart_fFunction · 0.70
CL_FrameFunction · 0.70
CL_InitFunction · 0.70

Calls 5

CL_InitRendererFunction · 0.70
S_BeginRegistrationFunction · 0.70
CL_InitUIFunction · 0.70
CL_InitCGameFunction · 0.70

Tested by

no test coverage detected