shithub: cstory

Download patch

ref: 56d249283dcc74a1ae4dc3c83b0518d4a15183d9
parent: 0f87d1ee8f5baf42e36fb2b4e26d8780fd79a9ee
author: Clownacy <[email protected]>
date: Mon Jan 28 05:15:27 EST 2019

Made NPC000 use a switchcase

--- a/src/NpcAct000.cpp
+++ b/src/NpcAct000.cpp
@@ -15,12 +15,15 @@
 	RECT rect[1];
 	rect[0] = {0x00, 0x00, 0x10, 0x10};
 
-	if (!npc->act_no)
+	switch (npc->act_no)
 	{
-		npc->act_no = 1;
+		case 0:
+			npc->act_no = 1;
 
-		if (npc->direct == 2)
-			npc->y += 0x2000;
+			if (npc->direct == 2)
+				npc->y += 0x2000;
+
+			break;
 	}
 
 	npc->rect = rect[0];