if (appData.icsEngineAnalyze) {
if (appData.debugMode)
fprintf(debugFP, "Found unexpected active ICS engine analyze \n");
- appData.icsEngineAnalyze = FALSE;
ExitAnalyzeMode();
ModeHighlight();
break;
} else {
/* if enable, user want disable icsEngineAnalyze */
if (appData.icsEngineAnalyze) {
- appData.icsEngineAnalyze = FALSE;
ExitAnalyzeMode();
ModeHighlight();
break;
case WM_COMMAND: /* message: received a command */
switch (LOWORD(wParam)) {
case IDCANCEL:
+ /* icsEngineAnalyze */
+ if (appData.icsActive && appData.icsEngineAnalyze) {
+ ExitAnalyzeMode();
+ ModeHighlight();
+ return TRUE;
+ }
EditGameEvent();
return TRUE;
default: