mirror of
https://github.com/zeldaret/tmc
synced 2026-06-04 02:47:05 -04:00
Put const data in objectAF
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_081248C4:: @ 081248C4
|
||||
.4byte sub_080A05A4
|
||||
.4byte sub_080A05F4
|
||||
.4byte sub_080A0624
|
||||
@@ -1542,7 +1542,7 @@ SECTIONS {
|
||||
data/animations/object/objectAB.o(.rodata);
|
||||
src/object/fourElements.o(.rodata);
|
||||
src/object/objectAD.o(.rodata);
|
||||
data/const/object/objectAF.o(.rodata);
|
||||
src/object/objectAF.o(.rodata);
|
||||
data/animations/object/objectAF.o(.rodata);
|
||||
src/object/metalDoor.o(.rodata);
|
||||
data/const/object/jailBars.o(.rodata);
|
||||
|
||||
+10
-4
@@ -2,12 +2,18 @@
|
||||
#include "entity.h"
|
||||
#include "physics.h"
|
||||
|
||||
extern void sub_080A0640(Entity*);
|
||||
|
||||
extern void (*const gUnk_081248C4[])(Entity*);
|
||||
void sub_080A0640(Entity*);
|
||||
void sub_080A05A4(Entity*);
|
||||
void sub_080A05F4(Entity*);
|
||||
void sub_080A0624(Entity*);
|
||||
|
||||
void ObjectAF(Entity* this) {
|
||||
gUnk_081248C4[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_080A05A4,
|
||||
sub_080A05F4,
|
||||
sub_080A0624,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_080A05A4(Entity* this) {
|
||||
|
||||
Reference in New Issue
Block a user