mirror of https://github.com/zeldaret/tmc.git
Put const data in giantLeaf
This commit is contained in:
parent
809ad1331b
commit
1c6bc876b5
|
@ -42544,16 +42544,6 @@
|
|||
"size": 4,
|
||||
"type": "animation"
|
||||
},
|
||||
{
|
||||
"path": "giantLeaf/gUnk_08121750.bin",
|
||||
"start": 1185616,
|
||||
"size": 26
|
||||
},
|
||||
{
|
||||
"path": "giantLeaf/gUnk_0812176A.bin",
|
||||
"start": 1185642,
|
||||
"size": 26
|
||||
},
|
||||
{
|
||||
"path": "animations/gSpriteAnimations_Object43_0.bin",
|
||||
"start": 1185760,
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_08121750:: @ 08121750
|
||||
.incbin "giantLeaf/gUnk_08121750.bin"
|
||||
|
||||
gUnk_0812176A:: @ 0812176A
|
||||
.incbin "giantLeaf/gUnk_0812176A.bin"
|
|
@ -1411,7 +1411,7 @@ SECTIONS {
|
|||
src/object/macroPlayer.o(.rodata);
|
||||
src/object/object3D.o(.rodata);
|
||||
src/object/object3E.o(.rodata);
|
||||
data/const/object/giantLeaf.o(.rodata);
|
||||
src/object/giantLeaf.o(.rodata);
|
||||
src/object/fairy.o(.rodata);
|
||||
src/object/object42.o(.rodata);
|
||||
src/object/object43.o(.rodata);
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
void sub_0808D618(Entity* ent);
|
||||
|
||||
extern s16 gUnk_08121750[];
|
||||
extern s16 gUnk_0812176A[];
|
||||
|
||||
void GiantLeaf(Entity* ent) {
|
||||
if (ent->action == 0) {
|
||||
ent->action = 1;
|
||||
|
@ -17,8 +14,14 @@ void GiantLeaf(Entity* ent) {
|
|||
}
|
||||
|
||||
void sub_0808D618(Entity* ent) {
|
||||
static const s16 gUnk_08121750[] = {
|
||||
0x41, 0x40, 0x3f, 0x3e, 0x1, 0x0, -0x1, -0x2, -0x3e, -0x3f, -0x40, -0x41, -0x7e,
|
||||
};
|
||||
static const s16 gUnk_0812176A[] = {
|
||||
0x3f, 0x40, 0x41, 0x42, -0x1, 0x0, 0x1, 0x2, -0x42, -0x41, -0x40, -0x3f, -0x82,
|
||||
};
|
||||
u32 tilePos;
|
||||
s16* arr;
|
||||
const s16* arr;
|
||||
u32 i;
|
||||
|
||||
arr = (ent->type != 0) ? gUnk_0812176A : gUnk_08121750;
|
||||
|
|
Loading…
Reference in New Issue