ref: 9ed2cdc9f1106681a24acd0f12f2e20a8821d59b
parent: 2f15c23277664ad36c893162d6b3b180914a1249
author: Gabriel Ravier <gabravier@gmail.com>
date: Wed May 8 05:39:08 EDT 2019
Correct comment spacing and convert MapName.cpp to UTF-8 Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/src/MapName.cpp
+++ b/src/MapName.cpp
@@ -14,16 +14,16 @@
{
int a;
- //Handle "Studio Pixel presents" text in the intro, using an obfuscated string
+ // 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,
@@ -68,7 +68,7 @@
0xFF
};
- //Reset map name flags
+ // Reset map name flags
gMapName.flag = 0;
gMapName.wait = 0;
@@ -80,10 +80,10 @@
str = (char*)presentText;
}
- //Copy map's name to the MapName
+ // Copy map's name to the MapName
strcpy(gMapName.name, str);
- //Draw the text to the surface
+ // Draw the text to the surface
a = (int)strlen(gMapName.name);
CortBox2(&rc, 0, SURFACE_ID_ROOM_NAME);
@@ -98,7 +98,7 @@
if (bMini)
{
- //Map system
+ // Map system
RECT rcBack;
rcBack.left = 0;
rcBack.right = WINDOW_WIDTH;
@@ -110,7 +110,7 @@
}
else if (gMapName.flag)
{
- //MNA
+ // MNA
PutBitmap3(&grcGame, (WINDOW_WIDTH - 172) / 2, (WINDOW_HEIGHT - 80) / 2, &rc, SURFACE_ID_ROOM_NAME);
if (++gMapName.wait > 160)
gMapName.flag = 0;