mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Fixed Mario going invisible when both are sliding
This commit is contained in:
parent
2d2dff6647
commit
79fdb73e63
2 changed files with 9 additions and 1 deletions
|
@ -1941,7 +1941,7 @@ skippy:
|
||||||
|
|
||||||
void init_mario_from_save_file(void) {
|
void init_mario_from_save_file(void) {
|
||||||
bool isMario = (gMarioState == &gMarioStates[0]);
|
bool isMario = (gMarioState == &gMarioStates[0]);
|
||||||
gMarioState->unk00 = 0;
|
gMarioState->unk00 = isMario ? 0 : 1;
|
||||||
gMarioState->flags = 0;
|
gMarioState->flags = 0;
|
||||||
gMarioState->action = 0;
|
gMarioState->action = 0;
|
||||||
int i = isMario ? 0 : 1;
|
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;
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue