diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2022-02-05 06:52:27 -0600 |
---|---|---|
committer | Seth Barberee <seth.barberee@gmail.com> | 2022-02-17 19:06:30 -0600 |
commit | ab11f056c91813a31fce26fdbb6b4b7e601750d1 (patch) | |
tree | c3bc4cf5f37e6639acb6a66d71947706fc6cf24c | |
parent | f8d0556b20eaa5546596087084bdba0ff4d6dc44 (diff) |
change the hex constants to something more readable
-rw-r--r-- | src/number_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/number_util.c b/src/number_util.c index dc981af..004f149 100644 --- a/src/number_util.c +++ b/src/number_util.c @@ -65,25 +65,25 @@ void sub_80944BC(s16 moveID, u8 *arg2) s32 moveID_s32 = moveID; struct PokemonMove stack; - if (moveID_s32 <= 0x1F3) { + if (moveID_s32 < 0x1F4) { // Needed this cast/variable to match moveID_u16 = moveID_s32; sub_8092AA8(&stack, moveID_u16); sub_80928C0(gUnknown_202DE58, &stack, NULL); xxx_format_string(*gUnknown_811383C, arg2, arg2 + 200, 0); } else { - strncpy(arg2, gUnknown_8113080[moveID + 0xfffffe0C].unk4, 200); + strncpy(arg2, gUnknown_8113080[moveID - 0x1F4].unk4, 200); } } u8 sub_8094528(s16 moveID) { - if(moveID <= 0x1F3) + if(moveID < 0x1F4) { return 1; } else { - return gUnknown_8113080[moveID + 0xfffffe0C].unk0; + return gUnknown_8113080[moveID - 0x1F4].unk0; } } |