MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetMaxPlayers

Method GetMaxPlayers

engine/Poseidon/Network/NetworkServer.cpp:466–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464 RemoveSystemMessages();
465
466 if (IsDedicatedServer())
467 {
468 StopMasterServerReporting();
469 }
470
471 Done();
472}
473
474void NetworkServer::Done()
475{
476 RemoveUserMessages();
477 if (_server)
478 {
479 Poseidon::DeleteDirectoryStructure(GetServerTmpDir(), true);
480 }
481 _server = nullptr;
482}
483
484int NetworkServer::GetMaxPlayers()
485{
486 int maxPlayers = 64;
487
488 if (IsDedicatedServer())
489 {
490 ParamFile cfg;
491 cfg.Parse(Poseidon::GetServerConfig());

Callers

nothing calls this directly

Calls 6

IsDedicatedServerFunction · 0.85
GetServerConfigFunction · 0.85
saturateMinFunction · 0.85
ParseMethod · 0.45
FindEntryMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected