mirror of https://github.com/zeldaret/tmc.git
Put const data in frozenFlower
This commit is contained in:
parent
e6931831b6
commit
dcbdf53c11
|
@ -1,9 +0,0 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_0812119C:: @ 0812119C
|
||||
.4byte sub_0808A9DC
|
||||
.4byte nullsub_519
|
|
@ -1389,7 +1389,7 @@ SECTIONS {
|
|||
data/animations/object/pushableRock.o(.rodata);
|
||||
src/object/hittableLever.o(.rodata);
|
||||
src/object/object30.o(.rodata);
|
||||
data/const/object/object31.o(.rodata);
|
||||
src/object/frozenFlower.o(.rodata);
|
||||
src/object/pullableMushroom.o(.rodata);
|
||||
data/animations/object/pullableMushroom.o(.rodata);
|
||||
src/object/bollard.o(.rodata);
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
#include "object.h"
|
||||
|
||||
extern void (*const gUnk_0812119C[])(Entity*);
|
||||
void sub_0808A9DC(Entity*);
|
||||
void nullsub_519(Entity*);
|
||||
|
||||
void FrozenFlower(Entity* this) {
|
||||
gUnk_0812119C[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_0808A9DC,
|
||||
nullsub_519,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_0808A9DC(Entity* this) {
|
||||
|
|
Loading…
Reference in New Issue