Fixed Mario going invisible when both are sliding
This commit is contained in:
parent
2d2dff6647
commit
79fdb73e63
|
@ -1941,7 +1941,7 @@ skippy:
|
|||
|
||||
void init_mario_from_save_file(void) {
|
||||
bool isMario = (gMarioState == &gMarioStates[0]);
|
||||
gMarioState->unk00 = 0;
|
||||
gMarioState->unk00 = isMario ? 0 : 1;
|
||||
gMarioState->flags = 0;
|
||||
gMarioState->action = 0;
|
||||
int i = isMario ? 0 : 1;
|
||||
|
|
|
@ -503,6 +503,14 @@ s32 is_point_within_radius_of_mario(f32 x, f32 y, f32 z, s32 dist) {
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
mGfxX = gLuigiObject->header.gfx.pos[0];
|
||||
mGfxY = gLuigiObject->header.gfx.pos[1];
|
||||
mGfxZ = gLuigiObject->header.gfx.pos[2];
|
||||
|
||||
if ((x - mGfxX) * (x - mGfxX) + (y - mGfxY) * (y - mGfxY) + (z - mGfxZ) * (z - mGfxZ)
|
||||
< (f32)(dist * dist)) {
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue