if (game_status == GAME_MODE_PLAYING)
{
+ int client_nr = buffer[0];
+ int index_nr = client_nr - 1;
+ boolean stopped_by_remote_player = (index_nr != local_player->index_nr);
char *message = (buffer[2] == NETWORK_STOP_BY_PLAYER ?
"Network game stopped by player!" :
buffer[2] == NETWORK_STOP_BY_ERROR ?
"Network game stopped due to internal error!" :
"Network game stopped!");
- Request(message, REQ_CONFIRM | REQ_STAY_CLOSED);
+ if (buffer[2] != NETWORK_STOP_BY_PLAYER || stopped_by_remote_player)
+ Request(message, REQ_CONFIRM | REQ_STAY_CLOSED);
}
SetGameStatus(GAME_MODE_MAIN);