Merge branch 'master' of https://github.com/pret/pokeemerald into ui-standardize
This commit is contained in:
12
src/trade.c
12
src/trade.c
@@ -351,7 +351,7 @@ static void InitTradeMenu(void)
|
||||
FillWindowPixelBuffer(i, PIXEL_FILL(0));
|
||||
}
|
||||
|
||||
FillBgTilemapBufferRect(0, 0, 0, 0, 30, 20, 15);
|
||||
FillBgTilemapBufferRect(0, 0, 0, 0, DISPLAY_TILE_WIDTH, DISPLAY_TILE_HEIGHT, 15);
|
||||
LoadUserWindowBorderGfx_(0, 20, BG_PLTT_ID(12));
|
||||
LoadUserWindowBorderGfx(2, 1, BG_PLTT_ID(14));
|
||||
LoadMonIconPalettes();
|
||||
@@ -2064,13 +2064,13 @@ static void RedrawTradeMenuParty(u8 whichParty)
|
||||
|
||||
static void Task_DrawSelectionSummary(u8 taskId)
|
||||
{
|
||||
FillBgTilemapBufferRect_Palette0(0, 0, 0, 0, 30, 20);
|
||||
FillBgTilemapBufferRect_Palette0(0, 0, 0, 0, DISPLAY_TILE_WIDTH, DISPLAY_TILE_HEIGHT);
|
||||
CopyBgTilemapBufferToVram(0);
|
||||
}
|
||||
|
||||
static void Task_DrawSelectionTrade(u8 taskId)
|
||||
{
|
||||
FillBgTilemapBufferRect_Palette0(0, 0, 0, 0, 30, 20);
|
||||
FillBgTilemapBufferRect_Palette0(0, 0, 0, 0, DISPLAY_TILE_WIDTH, DISPLAY_TILE_HEIGHT);
|
||||
CopyBgTilemapBufferToVram(0);
|
||||
}
|
||||
|
||||
@@ -2391,7 +2391,7 @@ s32 GetGameProgressForLinkTrade(void)
|
||||
s32 isGameFrLg;
|
||||
u16 version;
|
||||
|
||||
if (gReceivedRemoteLinkPlayers != 0)
|
||||
if (gReceivedRemoteLinkPlayers)
|
||||
{
|
||||
isGameFrLg = 0;
|
||||
version = (gLinkPlayers[GetMultiplayerId() ^ 1].version & 0xFF);
|
||||
@@ -2465,8 +2465,8 @@ int GetUnionRoomTradeMessageId(struct RfuGameCompatibilityData player, struct Rf
|
||||
else
|
||||
{
|
||||
// Player's Pokémon must be of the type the partner requested
|
||||
if (gBaseStats[playerSpecies2].type1 != requestedType
|
||||
&& gBaseStats[playerSpecies2].type2 != requestedType)
|
||||
if (gSpeciesInfo[playerSpecies2].types[0] != requestedType
|
||||
&& gSpeciesInfo[playerSpecies2].types[1] != requestedType)
|
||||
return UR_TRADE_MSG_NOT_MON_PARTNER_WANTS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user