Make final Bowser star interactable for all players

This commit is contained in:
MysterD 2021-08-04 18:55:32 -07:00
parent 00da6b48f5
commit 354146e3ac

View file

@ -848,6 +848,10 @@ void bowser_spawn_grand_star_key(void) {
gSecondCameraFocus = reward; gSecondCameraFocus = reward;
if (prevReward == NULL) { if (prevReward == NULL) {
// set the home position
reward->oHomeX = reward->oPosX;
reward->oHomeY = reward->oPosY;
reward->oHomeZ = reward->oPosZ;
struct Object* spawn_objects[] = { reward }; struct Object* spawn_objects[] = { reward };
u32 models[] = { MODEL_STAR }; u32 models[] = { MODEL_STAR };
network_send_spawn_objects(spawn_objects, models, 1); network_send_spawn_objects(spawn_objects, models, 1);
@ -859,6 +863,10 @@ void bowser_spawn_grand_star_key(void) {
cur_obj_play_sound_2(SOUND_GENERAL2_BOWSER_KEY); cur_obj_play_sound_2(SOUND_GENERAL2_BOWSER_KEY);
if (prevReward == NULL) { if (prevReward == NULL) {
// set the home position
reward->oHomeX = reward->oPosX;
reward->oHomeY = reward->oPosY;
reward->oHomeZ = reward->oPosZ;
struct Object* spawn_objects[] = { reward }; struct Object* spawn_objects[] = { reward };
u32 models[] = { MODEL_BOWSER_KEY }; u32 models[] = { MODEL_BOWSER_KEY };
network_send_spawn_objects(spawn_objects, models, 1); network_send_spawn_objects(spawn_objects, models, 1);