Correct comment spacing and convert MapName.cpp to UTF-8
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
2f15c23277
commit
9ed2cdc9f1
1 changed files with 10 additions and 10 deletions
|
@ -14,16 +14,16 @@ void ReadyMapName(const char *str)
|
||||||
{
|
{
|
||||||
int a;
|
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] =
|
unsigned char presentText[24] =
|
||||||
{
|
{
|
||||||
#ifdef JAPANESE
|
#ifdef JAPANESE
|
||||||
// "ŠJ”ŽºPixel presents"
|
// "開発室Pixel presents"
|
||||||
0x8A - 1, // ŠJ
|
0x8A - 1, // 開
|
||||||
0x4A - 1,
|
0x4A - 1,
|
||||||
0x94 - 1, // ”
|
0x94 - 1, // 発
|
||||||
0xAD - 1,
|
0xAD - 1,
|
||||||
0x8E - 1, // Žº
|
0x8E - 1, // 室
|
||||||
0xBA - 1,
|
0xBA - 1,
|
||||||
'P' - 1,
|
'P' - 1,
|
||||||
'i' - 1,
|
'i' - 1,
|
||||||
|
@ -68,7 +68,7 @@ void ReadyMapName(const char *str)
|
||||||
0xFF
|
0xFF
|
||||||
};
|
};
|
||||||
|
|
||||||
//Reset map name flags
|
// Reset map name flags
|
||||||
gMapName.flag = 0;
|
gMapName.flag = 0;
|
||||||
gMapName.wait = 0;
|
gMapName.wait = 0;
|
||||||
|
|
||||||
|
@ -80,10 +80,10 @@ void ReadyMapName(const char *str)
|
||||||
str = (char*)presentText;
|
str = (char*)presentText;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Copy map's name to the MapName
|
// Copy map's name to the MapName
|
||||||
strcpy(gMapName.name, str);
|
strcpy(gMapName.name, str);
|
||||||
|
|
||||||
//Draw the text to the surface
|
// Draw the text to the surface
|
||||||
a = (int)strlen(gMapName.name);
|
a = (int)strlen(gMapName.name);
|
||||||
|
|
||||||
CortBox2(&rc, 0, SURFACE_ID_ROOM_NAME);
|
CortBox2(&rc, 0, SURFACE_ID_ROOM_NAME);
|
||||||
|
@ -98,7 +98,7 @@ void PutMapName(BOOL bMini)
|
||||||
|
|
||||||
if (bMini)
|
if (bMini)
|
||||||
{
|
{
|
||||||
//Map system
|
// Map system
|
||||||
RECT rcBack;
|
RECT rcBack;
|
||||||
rcBack.left = 0;
|
rcBack.left = 0;
|
||||||
rcBack.right = WINDOW_WIDTH;
|
rcBack.right = WINDOW_WIDTH;
|
||||||
|
@ -110,7 +110,7 @@ void PutMapName(BOOL bMini)
|
||||||
}
|
}
|
||||||
else if (gMapName.flag)
|
else if (gMapName.flag)
|
||||||
{
|
{
|
||||||
//MNA
|
// MNA
|
||||||
PutBitmap3(&grcGame, (WINDOW_WIDTH - 172) / 2, (WINDOW_HEIGHT - 80) / 2, &rc, SURFACE_ID_ROOM_NAME);
|
PutBitmap3(&grcGame, (WINDOW_WIDTH - 172) / 2, (WINDOW_HEIGHT - 80) / 2, &rc, SURFACE_ID_ROOM_NAME);
|
||||||
if (++gMapName.wait > 160)
|
if (++gMapName.wait > 160)
|
||||||
gMapName.flag = 0;
|
gMapName.flag = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue