shithub: cstory

Download patch

ref: 006a20b9149b514ba389b6da0401f21527c678b5
parent: 2faf387c9ead775993ed08d164399f834788f9c2
parent: b1418f7fae9cdf8e5fb32f99af49e783bf9b0e9f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Oct 21 16:25:48 EDT 2019

Merge branch 'accurate' into portable

--- a/src/MapName.cpp
+++ b/src/MapName.cpp
@@ -16,12 +16,12 @@
 	// Handle "Studio Pixel presents" text in the intro, using an obfuscated string
 	unsigned char presentText[24] = {
 #ifdef JAPANESE
-		// "�J����Pixel presents"
-		0x8A - 1,	// �J
+		// "開発室Pixel presents"
+		0x8A - 1,	// 開
 		0x4A - 1,
-		0x94 - 1,	// ��
+		0x94 - 1,	// 発
 		0xAD - 1,
-		0x8E - 1,	// ��
+		0x8E - 1,	// 室
 		0xBA - 1,
 		'P' - 1,
 		'i' - 1,
--- a/src/NpChar.cpp
+++ b/src/NpChar.cpp
@@ -142,7 +142,7 @@
 
 	// Set NPC parameters
 	memset(&gNPC[n], 0, sizeof(NPCHAR));
-	gNPC[n].cond |= 0x80u;
+	gNPC[n].cond |= 0x80;
 	gNPC[n].direct = dir;
 	gNPC[n].code_char = code_char;
 	gNPC[n].x = x;
--- a/src/NpcAct140.cpp
+++ b/src/NpcAct140.cpp
@@ -1949,6 +1949,8 @@
 // Monster X (defeated)
 void ActNpc159(NPCHAR *npc)
 {
+	int i;
+
 	RECT rect = {144, 128, 192, 200};
 
 	switch (npc->act_no)
@@ -1956,7 +1958,7 @@
 		case 0:
 			npc->act_no = 1;
 
-			for (int i = 0; i < 8; ++i)
+			for (i = 0; i < 8; ++i)
 				SetNpChar(4, npc->x + (Random(-16, 16) * 0x200), npc->y + (Random(-16, 16) * 0x200), Random(-341, 341), Random(-341, 341), 0, 0, 0x100);
 			// Fallthrough
 		case 1:
--- a/src/NpcAct180.cpp
+++ b/src/NpcAct180.cpp
@@ -970,6 +970,8 @@
 // Broken robot
 void ActNpc190(NPCHAR *npc)
 {
+	int i;
+
 	RECT rect[2] = {
 		{192, 32, 208, 48},
 		{208, 32, 224, 48},
@@ -983,7 +985,7 @@
 
 		case 10:
 			PlaySoundObject(72, 1);
-			for (int i = 0; i < 8; i++)
+			for (i = 0; i < 8; i++)
 				SetNpChar(4, npc->x, npc->y + (Random(-8, 8) << 9), Random(-8, -2) << 9, Random(-3, 3) << 9, 0, 0, 0x100);
 			npc->cond = 0;
 			break;
--