From 0bdc0b2aa5cb91f3849514259061d8838df6492a Mon Sep 17 00:00:00 2001 From: Alex <93446519+AlexOn1ine@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:58:07 +0100 Subject: [PATCH] Fix leftover (#4074) --- include/config.h | 2 +- src/battle_ai_util.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/config.h b/include/config.h index 17dda42411..f4be812643 100644 --- a/include/config.h +++ b/include/config.h @@ -6,7 +6,7 @@ // still has them in the ROM. This is because the developers forgot // to define NDEBUG before release, however this has been changed as // Ruby's actual debug build does not use the AGBPrint features. -// #define NDEBUG +#define NDEBUG // To enable printf debugging, comment out "#define NDEBUG". This allows // the various AGBPrint functions to be used. (See include/gba/isagbprint.h). diff --git a/src/battle_ai_util.c b/src/battle_ai_util.c index 99cc0c187b..a0ad20951c 100644 --- a/src/battle_ai_util.c +++ b/src/battle_ai_util.c @@ -861,8 +861,6 @@ u32 NoOfHitsForTargetToFaintAI(u32 battlerDef, u32 battlerAtk) { if (currNumberOfHits < leastNumberOfHits) leastNumberOfHits = currNumberOfHits; - else if (leastNumberOfHits == UNKNOWN_NO_OF_HITS) - leastNumberOfHits = currNumberOfHits; } } return leastNumberOfHits;