mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 03:51:46 +00:00
fixed mario anim part position getters
This commit is contained in:
parent
7b1dabfb43
commit
c13352d6a2
1 changed files with 4 additions and 7 deletions
|
|
@ -1233,8 +1233,7 @@ static void geo_sanitize_object_gfx(void) {
|
|||
|
||||
static struct MarioBodyState *get_mario_body_state_from_mario_object(struct Object *marioObj) {
|
||||
struct MarioState *m = get_mario_state_from_object(marioObj);
|
||||
if (m) { return m->marioBodyState; }
|
||||
return NULL;
|
||||
return m ? m->marioBodyState : NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1385,11 +1384,9 @@ static void geo_process_object(struct Object *node) {
|
|||
gMatStackPrevFixed[gMatStackIndex] = mtxPrev;
|
||||
|
||||
if (node->header.gfx.sharedChild != NULL) {
|
||||
if (node->header.gfx.node.flags & GRAPH_RENDER_PLAYER) {
|
||||
gCurMarioBodyState = get_mario_body_state_from_mario_object(node);
|
||||
if (gCurMarioBodyState) {
|
||||
gCurMarioBodyState->currAnimPart = MARIO_ANIM_PART_NONE;
|
||||
}
|
||||
gCurMarioBodyState = get_mario_body_state_from_mario_object(node);
|
||||
if (gCurMarioBodyState) {
|
||||
gCurMarioBodyState->currAnimPart = MARIO_ANIM_PART_NONE;
|
||||
}
|
||||
gCurGraphNodeObject = (struct GraphNodeObject *) node;
|
||||
node->header.gfx.sharedChild->parent = &node->header.gfx.node;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue