From 37b442f3bbba722f31ab97b84a2573bbb8647c28 Mon Sep 17 00:00:00 2001 From: Bassoonian Date: Tue, 6 Feb 2024 23:36:30 +0100 Subject: [PATCH] Apply ghoul's review --- src/battle_records.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/battle_records.c b/src/battle_records.c index a99acada65..bec0f48370 100644 --- a/src/battle_records.c +++ b/src/battle_records.c @@ -324,10 +324,8 @@ static void PrintLinkBattleRecord(struct LinkBattleRecord *record, u8 y, s32 lan void ShowLinkBattleRecords(void) { - s32 x; #if FREE_LINK_BATTLE_RECORDS == FALSE - s32 i; -#endif //FREE_LINK_BATTLE_RECORDS + s32 x, i; gRecordsWindowId = AddWindow(&sLinkBattleRecordsWindow); DrawStdWindowFrame(gRecordsWindowId, FALSE); @@ -336,7 +334,6 @@ void ShowLinkBattleRecords(void) x = GetStringCenterAlignXOffset(FONT_NORMAL, gStringVar4, 208); AddTextPrinterParameterized(gRecordsWindowId, FONT_NORMAL, gStringVar4, x, 1, 0, NULL); -#if FREE_LINK_BATTLE_RECORDS == FALSE PrintLinkBattleWinsLossesDraws(gSaveBlock1Ptr->linkBattleRecords.entries); StringExpandPlaceholders(gStringVar4, gText_WinLoseDraw); @@ -346,10 +343,10 @@ void ShowLinkBattleRecords(void) { PrintLinkBattleRecord(&gSaveBlock1Ptr->linkBattleRecords.entries[i], 7 + (i * 2), gSaveBlock1Ptr->linkBattleRecords.languages[i]); } -#endif //FREE_LINK_BATTLE_RECORDS PutWindowTilemap(gRecordsWindowId); CopyWindowToVram(gRecordsWindowId, COPYWIN_FULL); +#endif //FREE_LINK_BATTLE_RECORDS } void RemoveRecordsWindow(void)