mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-07 16:42:36 +00:00
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:
parent
2a95817d84
commit
708d67336d
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue