============================ 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 ============================ */
| 949 | ============================ |
| 950 | */ |
| 951 | void 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 | ================ |
no test coverage detected