mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
Nonmatching resoltuion
- Fix fakematch in Cmd_get_used_held_item - Remove `static` overrides in MODERN in four objects
This commit is contained in:
parent
6c297d19e8
commit
e6b1b97aa1
@ -2089,12 +2089,7 @@ static void Cmd_get_used_held_item(void)
|
||||
else
|
||||
battlerId = gBattlerTarget;
|
||||
|
||||
// This is likely a leftover from Ruby's code and its ugly ewram access.
|
||||
#ifdef NONMATCHING
|
||||
AI_THINKING_STRUCT->funcResult = gBattleStruct->usedHeldItems[battlerId];
|
||||
#else
|
||||
AI_THINKING_STRUCT->funcResult = *(u8*)((u8*)(gBattleStruct) + offsetof(struct BattleStruct, usedHeldItems) + (battlerId * 2));
|
||||
#endif // NONMATCHING
|
||||
AI_THINKING_STRUCT->funcResult = *(u8 *)&gBattleStruct->usedHeldItems[battlerId];
|
||||
|
||||
gAIScriptPtr += 2;
|
||||
}
|
||||
|
@ -68,9 +68,6 @@ extern const struct BgTemplate gBattleBgTemplates[];
|
||||
extern const struct WindowTemplate *const gBattleWindowTemplates[];
|
||||
|
||||
// this file's functions
|
||||
#if !defined(NONMATCHING) && MODERN
|
||||
#define static
|
||||
#endif
|
||||
static void CB2_InitBattleInternal(void);
|
||||
static void CB2_PreInitMultiBattle(void);
|
||||
static void CB2_PreInitIngamePlayerPartnerBattle(void);
|
||||
|
@ -19,9 +19,6 @@
|
||||
extern u16 gUnknown_0203CF30[];
|
||||
|
||||
// this file's functions
|
||||
#if !defined(NONMATCHING) && MODERN
|
||||
#define static
|
||||
#endif
|
||||
static bool8 CheckPyramidBagHasItem(u16 itemId, u16 count);
|
||||
static bool8 CheckPyramidBagHasSpace(u16 itemId, u16 count);
|
||||
|
||||
|
@ -165,9 +165,6 @@ static EWRAM_DATA struct {
|
||||
/*0xFE*/ u8 wirelessWinBottom;
|
||||
} *sTradeData = {NULL};
|
||||
|
||||
#if !defined(NONMATCHING) && MODERN
|
||||
#define static
|
||||
#endif
|
||||
static bool32 IsWirelessTrade(void);
|
||||
static void CB2_CreateTradeMenu(void);
|
||||
static void VBlankCB_TradeMenu(void);
|
||||
|
3
src/tv.c
3
src/tv.c
@ -75,9 +75,6 @@ EWRAM_DATA ALIGNED(4) u8 sTVShowState = 0;
|
||||
EWRAM_DATA u8 sTVSecretBaseSecretsRandomValues[3] = {};
|
||||
|
||||
// Static ROM declarations
|
||||
#if !defined(NONMATCHING) && MODERN
|
||||
#define static
|
||||
#endif
|
||||
void ClearPokemonNews(void);
|
||||
u8 GetTVChannelByShowType(u8 kind);
|
||||
u8 FindFirstActiveTVShowThatIsNotAMassOutbreak(void);
|
||||
|
Loading…
Reference in New Issue
Block a user