port TrendyPhraseIdOld fakematch fix
This commit is contained in:
+11
-8
@@ -222,15 +222,18 @@ void BufferTrendyPhraseString(void)
|
|||||||
void TrendyPhraseIsOld(void)
|
void TrendyPhraseIsOld(void)
|
||||||
{
|
{
|
||||||
u16 result = 0;
|
u16 result = 0;
|
||||||
|
|
||||||
if (gSaveBlock1Ptr->easyChatPairs[0].unk0_0 - gSaveBlock1Ptr->easyChatPairs[1].unk0_0 < 2)
|
do
|
||||||
{
|
{
|
||||||
#ifndef NONMATCHING
|
if (gSaveBlock1Ptr->easyChatPairs[0].unk0_0 - gSaveBlock1Ptr->easyChatPairs[1].unk0_0 > 1)
|
||||||
asm("":::"r2"); //Force the compiler to store address of gSaveBlock1 in r3 instead of r2
|
break;
|
||||||
#endif
|
if (gSaveBlock1Ptr->easyChatPairs[0].unk1_6)
|
||||||
if (!gSaveBlock1Ptr->easyChatPairs[0].unk1_6 && gSaveBlock1Ptr->easyChatPairs[1].unk1_6)
|
break;
|
||||||
result = 1;
|
if (!gSaveBlock1Ptr->easyChatPairs[1].unk1_6)
|
||||||
}
|
break;
|
||||||
|
result = 1;
|
||||||
|
} while (0);
|
||||||
|
|
||||||
gSpecialVar_Result = result;
|
gSpecialVar_Result = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user