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

Method HasAdminLoggedIn

engine/Poseidon/Network/NetworkMisc.cpp:1489–1500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487}
1488
1489void NetworkManager::OnSimulate()
1490{
1491 if (_sessionEnum && _sessionEnum->RunningEnumHosts())
1492 {
1493 // refresh
1494 float age = Glob.uiTime - _lastEnumHosts;
1495 if (age > 3) // Sockets refresh timeout
1496 {
1497 StartEnumHosts();
1498 }
1499 }
1500
1501 if (_client)
1502 {
1503 _client->OnSimulate();

Callers 1

TriGetAdminLoggedInFunction · 0.45

Calls 2

AdminLoginGrantedMethod · 0.80
IsGameMasterMethod · 0.45

Tested by 1

TriGetAdminLoggedInFunction · 0.36