MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / net_start_client4

Method net_start_client4

ogsr_engine/xrGame/Level_network_start_client.cpp:72–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool CLevel::net_start_client4()
73{
74 if (connected_to_server)
75 {
76 // Begin spawn
77 g_pGamePersistent->LoadTitle("st_client_spawning");
78
79 // Send physics to single or multithreaded mode
80 LoadPhysicsGameParams();
81 ph_world = xr_new<CPHWorld>();
82 ph_world->Create();
83
84 // Send network to single or multithreaded mode
85 // *note: release version always has "mt_*" enabled
86 Device.seqFrameMT.Remove(g_pNetProcessor);
87 Device.seqFrame.Remove(g_pNetProcessor);
88 Device.seqFrameMT.Add(g_pNetProcessor, REG_PRIORITY_HIGH + 2);
89
90 while (!game_configured)
91 {
92 ClientReceive();
93 if (Server)
94 Server->Update();
95 Sleep(5);
96 }
97 }
98 return true;
99}
100
101bool CLevel::net_start_client5()
102{

Callers

nothing calls this directly

Calls 6

LoadPhysicsGameParamsFunction · 0.85
LoadTitleMethod · 0.80
CreateMethod · 0.45
RemoveMethod · 0.45
AddMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected