shithub: cstory

Download patch

ref: 7a5eb3993c0663b382d51a9ae8723ed43ca6f538
parent: dcf99214813780aee08b5d1612d22cb2ac5b95dc
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Sep 4 09:57:22 EDT 2019

Remove some FIX_BUGS things that aren't actually bugs

Code cleanup isn't within the scope of the project.

--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -490,9 +490,7 @@
 // 曲情報を設定。flagはアイテムを指定 (Set song information. flag specifies an item)
 BOOL OrgData::SetMusicInfo(MUSICINFO *mi, unsigned long flag)
 {
-#ifndef FIX_BUGS	// Leftover debug junk
-	char str[32];
-#endif
+	char str[32];	// Leftover debug junk
 	int i;
 
 	if (flag & SETGRID)	// グリッドを有効に (Enable grid)
@@ -504,9 +502,7 @@
 	if (flag & SETWAIT)
 	{
 		info.wait = mi->wait;
-#ifndef FIX_BUGS
-		itoa(mi->wait, str, 10);
-#endif
+		itoa(mi->wait, str, 10);	// Leftover debug junk
 	}
 
 	if (flag & SETREPEAT)
@@ -720,7 +716,7 @@
 	// データを有効に (Enable data)
 	for (j = 0; j < MAXMELODY; j++)
 		MakeOrganyaWave(j,info.tdata[j].wave_no, info.tdata[j].pipi);
-#ifndef FIX_BUGS
+
 	// Pixel ripped out some code so he could use PixTone sounds as drums, but he left this dead code
 	for (j = MAXMELODY; j < MAXTRACK; j++)
 	{
@@ -727,7 +723,6 @@
 		i = info.tdata[j].wave_no;
 		//InitDramObject(dram_name[i], j - MAXMELODY);
 	}
-#endif
 
 	SetPlayPointer(0);	// 頭出し (Cue)