diff options
author | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2018-12-05 22:31:01 +0800 |
---|---|---|
committer | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2018-12-06 10:38:28 +0800 |
commit | f9ff7316d5c7277eb7482e30121388cd65f4ecfc (patch) | |
tree | ee8f4a9c338f880a3585d6e9ed9ed695f27cef3d /src/script.c | |
parent | 405f1bb529809b8169364737087189df0fcca1d2 (diff) |
Remove uses of INVALID_ defines, clean up some arrays with constants, and spaces -> tabs
Diffstat (limited to 'src/script.c')
-rw-r--r-- | src/script.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/script.c b/src/script.c index 4e133a188..c61ae7183 100644 --- a/src/script.c +++ b/src/script.c @@ -391,11 +391,11 @@ bool32 sub_80991F8(void) struct RamScriptData *scriptData = &gSaveBlock1Ptr->ramScript.data; if (scriptData->magic != RAM_SCRIPT_MAGIC) return FALSE; - if (scriptData->mapGroup != INVALID_U8) + if (scriptData->mapGroup != 0xFF) return FALSE; - if (scriptData->mapNum != INVALID_U8) + if (scriptData->mapNum != 0xFF) return FALSE; - if (scriptData->objectId != INVALID_U8) + if (scriptData->objectId != 0xFF) return FALSE; if (CalculateRamScriptChecksum() != gSaveBlock1Ptr->ramScript.checksum) return FALSE; @@ -409,11 +409,11 @@ u8 *sub_8099244(void) return NULL; if (scriptData->magic != RAM_SCRIPT_MAGIC) return NULL; - if (scriptData->mapGroup != INVALID_U8) + if (scriptData->mapGroup != 0xFF) return NULL; - if (scriptData->mapNum != INVALID_U8) + if (scriptData->mapNum != 0xFF) return NULL; - if (scriptData->objectId != INVALID_U8) + if (scriptData->objectId != 0xFF) return NULL; if (CalculateRamScriptChecksum() != gSaveBlock1Ptr->ramScript.checksum) { |