mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-24 18:25:32 +00:00
network packet
This commit is contained in:
@@ -1911,12 +1911,26 @@ void CGameNetworkManager::ServerReadyCreate(bool create)
|
||||
|
||||
void CGameNetworkManager::ServerReady()
|
||||
{
|
||||
m_hServerReadyEvent->Set();
|
||||
if (m_hServerReadyEvent != NULL)
|
||||
{
|
||||
m_hServerReadyEvent->Set();
|
||||
}
|
||||
else
|
||||
{
|
||||
app.DebugPrintf("[NET] Warning: ServerReady() called but m_hServerReadyEvent is NULL\n");
|
||||
}
|
||||
}
|
||||
|
||||
void CGameNetworkManager::ServerReadyWait()
|
||||
{
|
||||
m_hServerReadyEvent->WaitForSignal(INFINITY);
|
||||
if (m_hServerReadyEvent != NULL)
|
||||
{
|
||||
m_hServerReadyEvent->WaitForSignal(INFINITY);
|
||||
}
|
||||
else
|
||||
{
|
||||
app.DebugPrintf("[NET] Warning: ServerReadyWait() called but m_hServerReadyEvent is NULL\n");
|
||||
}
|
||||
}
|
||||
|
||||
void CGameNetworkManager::ServerReadyDestroy()
|
||||
@@ -1937,7 +1951,14 @@ void CGameNetworkManager::ServerStoppedCreate(bool create)
|
||||
|
||||
void CGameNetworkManager::ServerStopped()
|
||||
{
|
||||
m_hServerStoppedEvent->Set();
|
||||
if (m_hServerStoppedEvent != NULL)
|
||||
{
|
||||
m_hServerStoppedEvent->Set();
|
||||
}
|
||||
else
|
||||
{
|
||||
app.DebugPrintf("[NET] Warning: ServerStopped() called but m_hServerStoppedEvent is NULL\n");
|
||||
}
|
||||
}
|
||||
|
||||
void CGameNetworkManager::ServerStoppedWait()
|
||||
@@ -1966,7 +1987,14 @@ void CGameNetworkManager::ServerStoppedWait()
|
||||
}
|
||||
else
|
||||
{
|
||||
m_hServerStoppedEvent->WaitForSignal(INFINITY);
|
||||
if (m_hServerStoppedEvent != NULL)
|
||||
{
|
||||
m_hServerStoppedEvent->WaitForSignal(INFINITY);
|
||||
}
|
||||
else
|
||||
{
|
||||
app.DebugPrintf("[NET] Warning: ServerStoppedWait() called but m_hServerStoppedEvent is NULL\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user