mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 23:13:02 +00:00
Fix crash in peach cutscene
This commit is contained in:
parent
f73c841bfe
commit
8abae8d26b
1 changed files with 4 additions and 0 deletions
|
@ -7382,6 +7382,10 @@ BAD_RETURN(s32) cutscene_ending_mario_land(struct Camera *c) {
|
||||||
* Move the camera closer to peach appearing.
|
* Move the camera closer to peach appearing.
|
||||||
*/
|
*/
|
||||||
BAD_RETURN(s32) cutscene_ending_peach_appear_closeup(struct Camera *c) {
|
BAD_RETURN(s32) cutscene_ending_peach_appear_closeup(struct Camera *c) {
|
||||||
|
// hacky fix to make sure cutscene focus is valid
|
||||||
|
if (gCutsceneFocus == NULL) {
|
||||||
|
gCutsceneFocus = gMarioStates[0].marioObj;
|
||||||
|
}
|
||||||
vec3f_set(c->pos, 179.f, 2463.f, -1216.f);
|
vec3f_set(c->pos, 179.f, 2463.f, -1216.f);
|
||||||
c->pos[1] = gCutsceneFocus->oPosY + 35.f;
|
c->pos[1] = gCutsceneFocus->oPosY + 35.f;
|
||||||
vec3f_set(c->focus, gCutsceneFocus->oPosX, gCutsceneFocus->oPosY + 125.f, gCutsceneFocus->oPosZ);
|
vec3f_set(c->focus, gCutsceneFocus->oPosX, gCutsceneFocus->oPosY + 125.f, gCutsceneFocus->oPosZ);
|
||||||
|
|
Loading…
Reference in a new issue