mirror of https://github.com/pret/pokeemerald.git
Review changes for #852
This commit is contained in:
parent
973e6f9667
commit
5b845bb0a0
|
@ -684,7 +684,7 @@ void ScrSpecial_SetMauvilleOldManEventObjGfx(void)
|
||||||
void sub_8120B70(union OldMan * oldMan)
|
void sub_8120B70(union OldMan * oldMan)
|
||||||
{
|
{
|
||||||
s32 i;
|
s32 i;
|
||||||
u8 sp00[8];
|
u8 playerName[PLAYER_NAME_LENGTH + 1];
|
||||||
|
|
||||||
switch (oldMan->common.id)
|
switch (oldMan->common.id)
|
||||||
{
|
{
|
||||||
|
@ -707,13 +707,13 @@ void sub_8120B70(union OldMan * oldMan)
|
||||||
{
|
{
|
||||||
if (storyteller->gameStatIDs[i] != 0)
|
if (storyteller->gameStatIDs[i] != 0)
|
||||||
{
|
{
|
||||||
memcpy(sp00, storyteller->trainerNames[i], PLAYER_NAME_LENGTH);
|
memcpy(playerName, storyteller->trainerNames[i], PLAYER_NAME_LENGTH);
|
||||||
sp00[PLAYER_NAME_LENGTH] = EOS;
|
playerName[PLAYER_NAME_LENGTH] = EOS;
|
||||||
if (IsStringJapanese(sp00))
|
if (IsStringJapanese(playerName))
|
||||||
{
|
{
|
||||||
memset(sp00, CHAR_SPACE, PLAYER_NAME_LENGTH + 1);
|
memset(playerName, CHAR_SPACE, PLAYER_NAME_LENGTH + 1);
|
||||||
StringCopy(sp00, gText_Friend);
|
StringCopy(playerName, gText_Friend);
|
||||||
memcpy(storyteller->trainerNames[i], sp00, PLAYER_NAME_LENGTH);
|
memcpy(storyteller->trainerNames[i], playerName, PLAYER_NAME_LENGTH);
|
||||||
storyteller->language[i] = GAME_LANGUAGE;
|
storyteller->language[i] = GAME_LANGUAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -798,7 +798,7 @@ void sub_8120C0C(union OldMan * oldMan, u32 r8, u32 r7, u32 r3)
|
||||||
|
|
||||||
void SanitizeReceivedEmeraldOldMan(union OldMan * oldMan, u32 version, u32 language)
|
void SanitizeReceivedEmeraldOldMan(union OldMan * oldMan, u32 version, u32 language)
|
||||||
{
|
{
|
||||||
u8 sp00[8];
|
u8 playerName[PLAYER_NAME_LENGTH + 1];
|
||||||
s32 i;
|
s32 i;
|
||||||
if (oldMan->common.id == MAUVILLE_MAN_STORYTELLER && language == LANGUAGE_JAPANESE)
|
if (oldMan->common.id == MAUVILLE_MAN_STORYTELLER && language == LANGUAGE_JAPANESE)
|
||||||
{
|
{
|
||||||
|
@ -808,9 +808,9 @@ void SanitizeReceivedEmeraldOldMan(union OldMan * oldMan, u32 version, u32 langu
|
||||||
{
|
{
|
||||||
if (storyteller->gameStatIDs[i] != 0)
|
if (storyteller->gameStatIDs[i] != 0)
|
||||||
{
|
{
|
||||||
memcpy(sp00, storyteller->trainerNames[i], PLAYER_NAME_LENGTH);
|
memcpy(playerName, storyteller->trainerNames[i], PLAYER_NAME_LENGTH);
|
||||||
sp00[PLAYER_NAME_LENGTH] = EOS;
|
playerName[PLAYER_NAME_LENGTH] = EOS;
|
||||||
if (IsStringJapanese(sp00))
|
if (IsStringJapanese(playerName))
|
||||||
storyteller->language[i] = LANGUAGE_JAPANESE;
|
storyteller->language[i] = LANGUAGE_JAPANESE;
|
||||||
else
|
else
|
||||||
storyteller->language[i] = GAME_LANGUAGE;
|
storyteller->language[i] = GAME_LANGUAGE;
|
||||||
|
|
Loading…
Reference in New Issue