mirror of https://github.com/zeldaret/tmc.git
Put const data in hiddenLadderDown
This commit is contained in:
parent
2a528d35b3
commit
7a65a8a845
|
|
@ -1,9 +0,0 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_08122604:: @ 08122604
|
||||
.4byte sub_08091F14
|
||||
.4byte sub_08092000
|
||||
|
|
@ -1439,7 +1439,7 @@ SECTIONS {
|
|||
data/animations/object/minecart.o(.rodata);
|
||||
src/object/thoughtBubble.o(.rodata);
|
||||
data/animations/object/thoughtBubble.o(.rodata);
|
||||
data/const/object/hiddenLadderDown.o(.rodata);
|
||||
src/object/hiddenLadderDown.o(.rodata);
|
||||
src/object/gentariCurtains.o(.rodata);
|
||||
data/animations/object/gentariCurtains.o(.rodata);
|
||||
src/object/lavaPlatform.o(.rodata);
|
||||
|
|
|
|||
|
|
@ -4,11 +4,16 @@
|
|||
#include "functions.h"
|
||||
#include "flags.h"
|
||||
|
||||
extern void (*const gUnk_08122604[])(Entity*);
|
||||
void sub_08091F14(Entity*);
|
||||
void sub_08092000(Entity*);
|
||||
|
||||
void HiddenLadderDown(Entity* this) {
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_08091F14,
|
||||
sub_08092000,
|
||||
};
|
||||
if (this->action < 2) {
|
||||
gUnk_08122604[this->action](this);
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue