shithub: cstory

Download patch

ref: 1bf110269c780f105df4d2f060b1f0f0c9e7b648
parent: 353798bf411161272613630d2a5f736230c43e7d
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jun 30 17:04:35 EDT 2020

Correct some constants

Have been incorrect since f43a3c1130c423ccb859b903ee13381098277eba

--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -255,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);
 }
 
@@ -264,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);
 }