Fix leftover (#4074)

This commit is contained in:
Alex 2024-01-26 18:58:07 +01:00 committed by GitHub
parent 80e6ca1df0
commit 0bdc0b2aa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -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).

View File

@ -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;