X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=ea7c7a7eef97e94b4cc0f9e779afdb4c7924c3ce;hb=4a8d41d0be4291df44a78bbf346c841a8710799c;hp=a1fe6ed773155dc519e9dd2f94a453af43cceb84;hpb=1af94b4e59fd00cc7da15ec5738ac87b7836ca09;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index a1fe6ed..ea7c7a7 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -4847,10 +4847,9 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) if(gameMode != BeginningOfGame) { // allow menu item to remain enabled for better mode highligting DisplayError(_("You can only start a match from the initial position."), 0); break; } - matchMode = 2;// distinguish from command-line-triggered case (matchMode=1) - appData.matchGames = appData.defaultMatchGames; - matchGame = 1; - first.matchWins = second.matchWins = 0; + appData.matchGames = appData.defaultMatchGames; + MatchEvent(2); // distinguish from command-line-triggered case (matchMode=1) + break; case IDM_TwoMachines: TwoMachinesEvent();