Diff of /ProjEdit.cpp [6bdbaa] .. [d6df6f]  Maximize  Restore

Switch to side-by-side view

--- a/ProjEdit.cpp
+++ b/ProjEdit.cpp
@@ -160,7 +160,7 @@
   }
 
   j=1;
-  for(i=0;i<5;i++)
+  for(i=0;i<6;i++)
   {
     cb=(CButton *) GetDlgItem(IDC_FLAG1+i);
     if(cb)
@@ -200,6 +200,10 @@
 	ON_COMMAND(ID_FILE_NEW, OnNew)
 	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_FLAG5, OnFlag5)
+	ON_BN_CLICKED(IDC_FLAG6, OnFlag6)
 	ON_BN_CLICKED(IDC_BROWSE1, OnBrowse1)
 	ON_BN_CLICKED(IDC_PLAY1, OnPlay1)
 	ON_BN_CLICKED(IDC_PLAY2, OnPlay2)
@@ -216,8 +220,6 @@
 	ON_BN_CLICKED(IDC_ATTR6, OnAttr6)
 	ON_BN_CLICKED(IDC_ATTR7, OnAttr7)
 	ON_BN_CLICKED(IDC_ATTR8, OnAttr8)
-	ON_BN_CLICKED(IDC_MPSMOKE, OnMpsmoke)
-	ON_BN_CLICKED(IDC_MPTRAVEL, OnMptravel)
 	ON_BN_CLICKED(IDC_ATTR9, OnAttr9)
 	ON_BN_CLICKED(IDC_ATTR10, OnAttr10)
 	ON_BN_CLICKED(IDC_ATTR11, OnAttr11)
@@ -226,10 +228,11 @@
 	ON_BN_CLICKED(IDC_ATTR14, OnAttr14)
 	ON_BN_CLICKED(IDC_ATTR15, OnAttr15)
 	ON_BN_CLICKED(IDC_ATTR16, OnAttr16)
+	ON_BN_CLICKED(IDC_MPSMOKE, OnMpsmoke)
+	ON_BN_CLICKED(IDC_MPTRAVEL, OnMptravel)
 	ON_CBN_SELCHANGE(IDC_TYPE, OnSelchangeType)
 	ON_BN_CLICKED(IDC_EXTENSION, OnExtension)
 	ON_BN_CLICKED(IDC_UNKNOWN154, OnUnknown154)
-	ON_BN_CLICKED(IDC_FLAG3, OnFlag3)
 	ON_COMMAND(ID_CHECK, OnCheck)
 	ON_COMMAND(ID_FILE_SAVE, OnSave)
 	ON_BN_CLICKED(IDC_UNKNOWN2C, OnUnknown2c)
@@ -247,11 +250,9 @@
 	ON_EN_SETFOCUS(IDC_U15, OnSetfocusU15)
 	ON_EN_SETFOCUS(IDC_U16, OnSetfocusU16)
 	ON_EN_SETFOCUS(IDC_U17, OnSetfocusU17)
-	ON_BN_CLICKED(IDC_FLAG5, OnFlag5)
 	ON_BN_CLICKED(IDC_BROWSE7, OnBrowse7)
 	ON_BN_CLICKED(IDC_BROWSE8, OnBrowse8)
 	ON_BN_CLICKED(IDC_BROWSE13, OnBrowse9)
-	ON_BN_CLICKED(IDC_FLAG4, OnFlag4)
 	ON_COMMAND(ID_FILE_TBG, OnFileTbg)
 	ON_COMMAND(ID_FILE_TP2, OnFileTp2)
 	ON_BN_CLICKED(IDC_LOAD, OnLoad)
@@ -589,6 +590,12 @@
 	UpdateData(UD_DISPLAY);
 }
 
+void CProjEdit::OnFlag6() 
+{
+	the_projectile.header.sparks^=32;
+	UpdateData(UD_DISPLAY);
+}
+
 void CProjEdit::OnBrowse1() 
 {
   pickerdlg.m_restype=REF_WAV;
@@ -1370,3 +1377,4 @@
 {
   ExportTBG(this, REF_PRO, 1);
 }
+

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks