Fix bowser camera oscillations (#1009)

Prevent the boss camera from using the altered 'grab' version
unless the local player is actually grabbing something

Co-authored-by: MysterD <myster@d>
This commit is contained in:
djoslin0 2025-11-16 15:32:56 -08:00 committed by GitHub
parent 2a95817d84
commit 708d67336d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1633,6 +1633,12 @@ s32 update_boss_fight_camera(struct Camera *c, Vec3f focus, Vec3f pos) {
if ((o = gSecondCameraFocus) != NULL) {
object_pos_to_vec3f(secondFocus, o);
heldState = o->oHeldState;
// for coop: if bowser is being held by someone else, don't alter the camera to prevent camera oscillations
if (gMarioStates[0].heldObj == NULL) {
heldState = 0;
}
} else {
// If no boss is there, just rotate around the area's center point.
secondFocus[0] = c->areaCenX;