--- a/options.cpp
+++ b/options.cpp
@@ -543,7 +543,7 @@
   DDX_Text(pDX, IDC_PARAM, weiduextra);
   DDX_Text(pDX, IDC_DECOMPILED, weidudecompiled);
   j=1;
-  for(i=0;i<4;i++)
+  for(i=0;i<5;i++)
   {
     cb=(CButton *) GetDlgItem(IDC_FLAG1+i);
     cb->SetCheck(!!(weiduflg&j));
@@ -556,11 +556,12 @@
 BEGIN_MESSAGE_MAP(CWeiDUOpt, CDialog)
 	//{{AFX_MSG_MAP(CWeiDUOpt)
 	ON_EN_KILLFOCUS(IDC_PARAM, OnKillfocusParam)
+	ON_BN_CLICKED(IDC_OPENFILE, OnOpenfile)
 	ON_BN_CLICKED(IDC_FLAG1, OnFlag1)
 	ON_BN_CLICKED(IDC_FLAG2, OnFlag2)
 	ON_BN_CLICKED(IDC_FLAG3, OnFlag3)
 	ON_BN_CLICKED(IDC_FLAG4, OnFlag4)
-	ON_BN_CLICKED(IDC_OPENFILE, OnOpenfile)
+	ON_BN_CLICKED(IDC_FLAG5, OnFlag5)
 	ON_BN_CLICKED(IDC_LOG, OnLog)
 	ON_EN_KILLFOCUS(IDC_DECOMPILED, OnKillfocusDecompiled)
 	//}}AFX_MSG_MAP
@@ -657,6 +658,12 @@
   Refresh();
 }
 
+void CWeiDUOpt::OnFlag5() 
+{
+	weiduflg^=WEI_GAMETYPE;
+  Refresh();
+}
+
 void CWeiDUOpt::OnLog() 
 {
 	weiduflg^=WEI_LOGGING;
@@ -667,4 +674,4 @@
 {
   m_tooltip.RelayEvent(pMsg);
 	return CDialog::PreTranslateMessage(pMsg);
-}
+}