sort out most of functions.h

This commit is contained in:
theo3
2022-03-30 00:52:53 -07:00
parent 65b80571b2
commit a633efd88c
81 changed files with 400 additions and 357 deletions
+8 -3
View File
@@ -6,11 +6,16 @@
#include "flags.h"
#include "functions.h"
#include "hitbox.h"
#include "object.h"
extern void (*const gUnk_081243B4[])(Entity*);
extern void (*const gUnk_081243BC[])(Entity*);
extern void (*const gUnk_081243C4[])(Entity*);
static void sub_0809EB30(Entity* this);
static void sub_0809EAD8(Entity* this);
static void sub_0809EABC(Entity* this);
void LightableSwitch(Entity* this) {
gUnk_081243B4[this->type](this);
sub_0809EB30(this);
@@ -47,7 +52,7 @@ void sub_0809EA80(Entity* this) {
sub_0809EABC(this);
}
void sub_0809EABC(Entity* this) {
static void sub_0809EABC(Entity* this) {
bool32 anySet = 0;
if (CheckFlags(this->field_0x86.HWORD)) {
@@ -58,7 +63,7 @@ void sub_0809EABC(Entity* this) {
}
}
void sub_0809EAD8(Entity* this) {
static void sub_0809EAD8(Entity* this) {
u8 bVar1;
Entity* pEVar2;
@@ -72,7 +77,7 @@ void sub_0809EAD8(Entity* this) {
}
}
void sub_0809EB30(Entity* this) {
static void sub_0809EB30(Entity* this) {
u16 uVar1;
u16* puVar2;