MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ProcessDisconnectMessage

Method ProcessDisconnectMessage

neo/framework/async/AsyncClient.cpp:1149–1161  ·  view source on GitHub ↗

================== idAsyncClient::ProcessDisconnectMessage ================== */

Source from the content-addressed store, hash-verified

1147==================
1148*/
1149void idAsyncClient::ProcessDisconnectMessage( const netadr_t from, const idBitMsg &msg ) {
1150 if ( clientState == CS_DISCONNECTED ) {
1151 common->Printf( "Disconnect packet while not connected.\n" );
1152 return;
1153 }
1154 if ( !Sys_CompareNetAdrBase( from, serverAddress ) ) {
1155 common->Printf( "Disconnect packet from unknown server.\n" );
1156 return;
1157 }
1158 session->Stop();
1159 session->MessageBox( MSG_OK, common->GetLanguageDict()->GetString ( "#str_04320" ), NULL, true );
1160 session->StartMenu();
1161}
1162
1163/*
1164==================

Callers

nothing calls this directly

Calls 7

Sys_CompareNetAdrBaseFunction · 0.50
PrintfMethod · 0.45
StopMethod · 0.45
MessageBoxMethod · 0.45
GetStringMethod · 0.45
GetLanguageDictMethod · 0.45
StartMenuMethod · 0.45

Tested by

no test coverage detected