mirror of
https://github.com/zeldaret/tmc
synced 2026-07-08 14:36:41 -04:00
Put const data in hiddenLadderDown
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user