From 2519aecaae2982acac0884701ece95872937ef5f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 8 Jun 2011 17:27:01 +0200 Subject: [PATCH] Give error popup when pairing engine fails An invalid pairing now produces an error popup to inform the user, so he knows why the tourney stagnates. --- backend.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 9ba38f3..6238eeb 100644 --- a/backend.c +++ b/backend.c @@ -7661,7 +7661,10 @@ HandleMachineMove(message, cps) if(cps == &pairing && sscanf(message, "%d-%d", &savedWhitePlayer, &savedBlackPlayer) == 2) { // [HGM] pairing: Mega-hack! Pairing engine also uses this routine (so it could give other WB commands). - if(savedWhitePlayer == 0 || savedBlackPlayer == 0) return; + if(savedWhitePlayer == 0 || savedBlackPlayer == 0) { + DisplayError(_("Invalid pairing from pairing engine"), 0); + return; + } pairingReceived = 1; NextMatchGame(); return; // Skim the pairing messages here. -- 1.7.0.4