int i=0, j;\r
while((j = radioButton[i++]) != -2) {\r
if(j == -1) continue; // no menu button\r
- if(IsDlgButtonChecked(hDlg, j)) return (VariantClass) i-1;\r
+ if(IsDlgButtonChecked(hDlg, j) &&\r
+ (appData.noChessProgram || strstr(first.variants, VariantName(i-1)))) return (VariantClass) i-1;\r
}\r
return gameInfo.variant; // If no button checked, keep old\r
}\r
* UCI Options Dialog functions\r
*\r
\*---------------------------------------------------------------------------*/\r
-static BOOL BrowseForFolder( const char * title, char * path )\r
+BOOL BrowseForFolder( const char * title, char * path )\r
{\r
BOOL result = FALSE;\r
BROWSEINFO bi;\r