shithub: pokecrystal

Download patch

ref: 331ed51264615a7edc794e7d29b361f3e5770652
parent: 5645e1e213fe882dbcdf234786edb1ad1414d495
author: dannye <33dannye@gmail.com>
date: Sun Sep 8 08:09:43 EDT 2019

stereo_panning: force any non-zero arg to 1

--- a/macros/scripts/audio.asm
+++ b/macros/scripts/audio.asm
@@ -156,7 +156,7 @@
 	enum force_stereo_panning_cmd ; $e4
 force_stereo_panning: MACRO
 	db force_stereo_panning_cmd
-	dn %1111 * \1, %1111 * \2 ; left enable, right enable
+	dn %1111 * (1 && \1), %1111 * (1 && \2) ; left enable, right enable
 ENDM
 
 	enum volume_cmd ; $e5
@@ -229,7 +229,7 @@
 	enum stereo_panning_cmd ; $ef
 stereo_panning: MACRO
 	db stereo_panning_cmd
-	dn %1111 * \1, %1111 * \2 ; left enable, right enable
+	dn %1111 * (1 && \1), %1111 * (1 && \2) ; left enable, right enable
 ENDM
 
 	enum sfx_toggle_noise_cmd ; $f0