diff options
author | camthesaxman <cameronghall@cox.net> | 2017-09-12 16:53:04 -0500 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2017-09-12 16:53:04 -0500 |
commit | a185f8a26dc5e5a04908c272ab54bede7af8a10c (patch) | |
tree | 9e427bbb6c06e6e6693bd5dfeed04140acb5554e /src/script.c | |
parent | 3b3d1596526ad0b19f7042d5176d92eac4738451 (diff) |
lots more relabeling
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 394085d4a..f049b96fc 100644 --- a/src/script.c +++ b/src/script.c @@ -228,16 +228,16 @@ void ScriptContext2_RunNewScript(const u8 *ptr) ; } -u8 *mapheader_get_tagged_pointer(u8 tag) +static u8 *mapheader_get_tagged_pointer(u8 tag) { u8 *mapScripts = gMapHeader.mapScripts; - if (!mapScripts) + if (mapScripts == NULL) return NULL; while (1) { - if (!*mapScripts) + if (*mapScripts == 0) return NULL; if (*mapScripts == tag) { @@ -248,14 +248,14 @@ u8 *mapheader_get_tagged_pointer(u8 tag) } } -void mapheader_run_script_by_tag(u8 tag) +static void mapheader_run_script_by_tag(u8 tag) { u8 *ptr = mapheader_get_tagged_pointer(tag); if (ptr) ScriptContext2_RunNewScript(ptr); } -u8 *mapheader_get_first_match_from_tagged_ptr_list(u8 tag) +static u8 *mapheader_get_first_match_from_tagged_ptr_list(u8 tag) { u8 *ptr = mapheader_get_tagged_pointer(tag); @@ -316,7 +316,7 @@ void mapheader_run_first_tag4_script_list_match(void) ScriptContext2_RunNewScript(ptr); } -u32 CalculateRamScriptChecksum(void) +static u32 CalculateRamScriptChecksum(void) { u32 i; u32 sum = 0; |