Decompile objFindBboxNode

This commit is contained in:
Ryan Dwyer
2021-12-01 18:48:57 +10:00
parent c6fbc1f06a
commit ea6956ac20
2 changed files with 7 additions and 14 deletions
+6 -13
View File
@@ -2662,17 +2662,10 @@ struct modelrodata_bbox *modelFindBboxRodata(struct model *model)
return NULL;
}
GLOBAL_ASM(
glabel func0f068ad4
/* f068ad4: 27bdffe8 */ addiu $sp,$sp,-24
/* f068ad8: afbf0014 */ sw $ra,0x14($sp)
/* f068adc: 0fc1a266 */ jal modelFindBboxNode
/* f068ae0: 8c840018 */ lw $a0,0x18($a0)
/* f068ae4: 8fbf0014 */ lw $ra,0x14($sp)
/* f068ae8: 27bd0018 */ addiu $sp,$sp,0x18
/* f068aec: 03e00008 */ jr $ra
/* f068af0: 00000000 */ nop
);
struct modelnode *objFindBboxNode(struct defaultobj *obj)
{
return modelFindBboxNode(obj->model);
}
struct modelrodata_bbox *objFindBboxRodata(struct defaultobj *obj)
{
@@ -56721,10 +56714,10 @@ bool objDrop(struct prop *prop, bool lazy)
f32 spa4;
f32 spa0;
node1 = func0f068ad4(obj);
node1 = objFindBboxNode(obj);
modelNodeGetPosition(obj->model, model0001a740(node1), &spb8);
node2 = func0f068ad4(rootobj);
node2 = objFindBboxNode(rootobj);
modelNodeGetPosition(rootobj->model, model0001a740(node2), &spa8);
spe4.x = spb8.x - spa8.x;
+1 -1
View File
@@ -80,7 +80,7 @@ struct modelnode *modelFileDataFindBboxNode(struct modelfiledata *filedata);
struct modelrodata_bbox *modelFileDataFindBboxRodata(struct modelfiledata *filedata);
struct modelnode *modelFindBboxNode(struct model *model);
struct modelrodata_bbox *modelFindBboxRodata(struct model *model);
struct modelnode *func0f068ad4(struct defaultobj *obj);
struct modelnode *objFindBboxNode(struct defaultobj *obj);
struct modelrodata_bbox *objFindBboxRodata(struct defaultobj *obj);
s32 func0f068b14(s16 *rooms, s32 arg1);
s32 func0f068c04(struct prop *prop, s32 *arg1, s32 *arg2);