================== idAsyncClient::ProcessDisconnectMessage ================== */
| 1147 | ================== |
| 1148 | */ |
| 1149 | void 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 | ================== |
nothing calls this directly
no test coverage detected