[saco] Match three CNetGame packet handlers; full, bad password and no response

This commit is contained in:
ricardoofnl committed 2026-09-03 05:27:21 +07:00
1 parent b3dab2e6ef
commit 3e1070db78
2 files changed
+31

No files matched your search

+27
View File
@@ -144,3 +144,30 @@ void CNetGame::ResetMapIcons()
}
//----------------------------------------------------
//----------------------------------------------------
// MATCH
void CNetGame::Packet_NoFreeIncomingConnections(Packet *p)
{
pChatWindow->AddDebugMessage("The server is full. Retrying...");
m_iGameState = GAMESTATE_WAIT_CONNECT;
}
//----------------------------------------------------
// MATCH
void CNetGame::Packet_InvalidPassword(Packet *p)
{
pChatWindow->AddDebugMessage("Wrong server password.");
GetRakClient()->Disconnect(0,0);
}
//----------------------------------------------------
// MATCH
void CNetGame::Packet_ConnectionAttemptFailed(Packet *p)
{
pChatWindow->AddDebugMessage("The server didn't respond. Retrying..");
m_iGameState = GAMESTATE_WAIT_CONNECT;
}
+4
View File
@@ -106,6 +106,10 @@ public:
void DisableMapIcon(BYTE byteIndex); // .text:10008FB0
CMenuPool * GetMenuPool() { return m_pPools->pMenuPool; }; // .text:100084F0
void Packet_NoFreeIncomingConnections(Packet *p); // .text:10008DB0
void Packet_InvalidPassword(Packet *p); // .text:10008E20
void Packet_ConnectionAttemptFailed(Packet *p); // .text:10008E60
int ToggleNameTagStatus(); // .text:10008E90
void sub_1000A540(); // .text:1000A540
};