From 89fdc7311b9d29fb2fae187a35d99e39bc2bce21 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 23 Sep 2019 18:09:49 +1000 Subject: [PATCH] Rename set_unknown_function to set_darkroom_function --- src/globals.c | 2 +- src/include/commands.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/globals.c b/src/globals.c index 1318264a1..084990873 100644 --- a/src/globals.c +++ b/src/globals.c @@ -30571,7 +30571,7 @@ u8 func0007_alerted[] = { label(0x16) set_onshot_function(GFUNC_ALERTED) set_aishootingatmel(35) - set_unknown_function(GFUNC_SEARCH_FOR_PLAYER) + set_darkroom_function(GFUNC_SEARCH_FOR_PLAYER) dprint 'S','T','A','R','T',' ','L','O','O','P','\n',0, if_chr_dying(CHR_SELF, /*goto*/ 0x16) diff --git a/src/include/commands.h b/src/include/commands.h index fec8b4e01..1cba697ae 100644 --- a/src/include/commands.h +++ b/src/include/commands.h @@ -1708,9 +1708,7 @@ mkshort(0x01c2), \ mkshort(value), -// Sets a function in the chr's struct. Likely a callback of some sort, such as -// the onshot function. -#define set_unknown_function(function) \ +#define set_darkroom_function(function) \ mkshort(0x01c3), \ mkshort(function),