From 8a01d08ca804d7b67e0f20c444e4debb598a10f0 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Fri, 26 Sep 2014 20:15:33 +0200 Subject: [PATCH] Fix abort of machine game on variant mismatch When the second engine did not support the current variant, and we clicked Two Machines, there was an error popup, but the Two Machines menu item stayed checkmarked. Now we explicitly uncheck it, and switch to EditGame mode. --- backend.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 24558d5..94e6393 100644 --- a/backend.c +++ b/backend.c @@ -14657,8 +14657,10 @@ TwoMachinesEvent P((void)) if(!SupportedVariant(second.variants, gameInfo.variant, gameInfo.boardWidth, gameInfo.boardHeight, gameInfo.holdingsSize, second.protocolVersion, second.tidy)) { - startingEngine = FALSE; + startingEngine = matchMode = FALSE; DisplayError("second engine does not play this", 0); + gameMode = TwoMachinesPlay; ModeHighlight(); // Needed to make sure menu item is unchecked + EditGameEvent(); // switch back to EditGame mode return; } -- 1.7.0.4