shithub: cstory

Download patch

ref: cc3c12d065433e00e8fddd311f7098463633d958
parent: 763c7d56c5fe13500ebc2d0e6f76ca3ef4dc7a8b
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jan 30 15:08:56 EST 2019

Fix some dumbs and comment some funnies

--- a/src/NpcAct020.cpp
+++ b/src/NpcAct020.cpp
@@ -197,7 +197,7 @@
 				npc->act_no = 4;
 				npc->ani_no = 3;
 				npc->act_wait = 0;
-				npc->act_wait = 0;
+				npc->act_wait = 0;	// lol duplicate line
 			}
 
 			break;
@@ -487,7 +487,7 @@
 					npc->direct = 2;
 
 				if (npc->direct == 0)
-					npc->xm = -0x100u;
+					npc->xm = -0x100;
 				else
 					npc->xm = 0x100;
 			}
@@ -501,7 +501,7 @@
 				npc->act_no = 4;
 				npc->ani_no = 3;
 				npc->act_wait = 0;
-				npc->act_wait = 0;
+				npc->act_wait = 0;	// lol duplicate line
 			}
 
 			break;
--- a/src/Sound.h
+++ b/src/Sound.h
@@ -20,7 +20,7 @@
 		void Play(bool bLooping);
 		void Stop();
 		
-		void Mix(float *buffer, int len);
+		void Mix(float (*buffer)[2], size_t samples);
 		
 		SOUNDBUFFER *next;
 	
--