shithub: cstory

Download patch

ref: 08062e9823bf3359e952fcc950bc9b709d7079d3
parent: 3092c34681495ec027905ec6f8deb35a34440060
parent: 1bf110269c780f105df4d2f060b1f0f0c9e7b648
author: Gabriel Ravier <gabravier@gmail.com>
date: Tue Jun 30 19:47:23 EDT 2020

Merge branch 'accurate' into accurateAddStddefWhenNeeded

# Conflicts:
#	src/Sound.cpp

--- a/src/Back.cpp
+++ b/src/Back.cpp
@@ -7,11 +7,7 @@
 
 #include "CommonDefines.h"
 #include "Draw.h"
-#include "Frame.h"
-#include "Game.h"
 #include "Main.h"
-#include "Map.h"
-#include "Stage.h"
 
 BACK gBack;
 int gWaterY;
--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -2,7 +2,6 @@
 
 #include <stddef.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 
 #include <ddraw.h>
--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -2,7 +2,6 @@
 
 #include <stddef.h>
 #include <stdio.h>
-#include <string.h>
 
 #if defined(_MSC_VER) && _MSC_VER >= 1500	// Newer versions of Visual Studio don't support anything earlier than DirectInput8
 #define DIRECTINPUT_VERSION 0x800
--- a/src/NpChar.h
+++ b/src/NpChar.h
@@ -1,6 +1,5 @@
 #pragma once
 
-#include "CommonDefines.h"
 #include "WindowsWrapper.h"
 
 #include "Draw.h"
--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -7,7 +7,6 @@
 #include "Organya.h"
 
 #include <stddef.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -256,7 +255,7 @@
 	if (lpDS == NULL)
 		return;
 
-	if (old_key[track] != PANDUMMY)
+	if (old_key[track] != KEYDUMMY)
 		lpORGANBUFFER[track][old_key[track] / 12][key_twin[track]]->SetPan((pan_tbl[pan] - 0x100) * 10);
 }
 
@@ -265,7 +264,7 @@
 	if (lpDS == NULL)
 		return;
 
-	if (old_key[track] != VOLDUMMY)
+	if (old_key[track] != KEYDUMMY)
 		lpORGANBUFFER[track][old_key[track] / 12][key_twin[track]]->SetVolume((volume - 0xFF) * 8);
 }
 
--- a/src/Sound.cpp
+++ b/src/Sound.cpp
@@ -12,7 +12,7 @@
 
 #include "Sound.h"
 
-#include <math.h>
+#include <stddef.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/src/Sound.h
+++ b/src/Sound.h
@@ -1,7 +1,5 @@
 #pragma once
 
-#include <stddef.h>
-
 #ifndef DIRECTSOUND_VERSION
 #define DIRECTSOUND_VERSION 0x500
 #endif