* Daiku2

* PR

* Macros

* NBS

* PR

* Format
This commit is contained in:
Maide
2021-08-08 20:28:45 +01:00
committed by GitHub
parent a35f091505
commit f5cbbc3268
9 changed files with 1335 additions and 745 deletions
+18 -1
View File
@@ -845,7 +845,24 @@ void Actor_FreeOverlay(ActorOverlay* entry) {
#pragma GLOBAL_ASM("asm/non_matchings/code/z_actor/func_800BE03C.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/z_actor/func_800BE0B8.s")
Actor* func_800BE0B8(GlobalContext* globalCtx, Actor* inActor, s16 arg2, u8 arg3, f32 arg4) {
Actor* actor = globalCtx->actorCtx.actorList[arg3].first;
while (actor != NULL) {
if (actor == inActor || ((arg2 != -1) && (arg2 != actor->id))) {
actor = actor->next;
continue;
}
if (Actor_DistanceBetweenActors(inActor, actor) <= arg4) {
return actor;
}
actor = actor->next;
}
return NULL;
}
#pragma GLOBAL_ASM("asm/non_matchings/code/z_actor/func_800BE184.s")