mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 11:43:37 +01:00
Fix Battle util fakematch
This commit is contained in:
parent
6e3f5a462a
commit
34f54dd438
@ -2241,16 +2241,8 @@ bool8 HasNoMonsToSwitch(u8 battler, u8 partyIdBattlerOn1, u8 partyIdBattlerOn2)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// FIXME: Compiler insists on moving r4 into r1 before doing the eor.
|
|
||||||
#ifndef NONMATCHING
|
|
||||||
register u32 var asm("r1");
|
|
||||||
#else
|
|
||||||
u32 var;
|
|
||||||
#endif // NONMATCHING
|
|
||||||
|
|
||||||
party = gEnemyParty;
|
party = gEnemyParty;
|
||||||
var = battler ^ BIT_SIDE;
|
if (battler == 1)
|
||||||
if (var == 0)
|
|
||||||
id1 = 0;
|
id1 = 0;
|
||||||
else
|
else
|
||||||
id1 = 1;
|
id1 = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user