bettercam: camera centering is bound to L again

This commit is contained in:
fgsfds 2020-06-25 01:18:50 +03:00
parent 026361ad61
commit 9e4c0f26c9

View file

@ -393,8 +393,8 @@ static void newcam_zoom_button(void) {
newcam_distance = newcam_distance_target; newcam_distance = newcam_distance_target;
} }
//When you press L and R together, set the flag for centering the camera. Afterwards, start setting the yaw to the Player's yaw at the time. if ((gPlayer1Controller->buttonDown & L_TRIG) && (newcam_modeflags & NC_FLAG_ZOOM)) {
if (gPlayer1Controller->buttonDown & L_TRIG && gPlayer1Controller->buttonDown & R_TRIG && newcam_modeflags & NC_FLAG_ZOOM) { //When you press L, set the flag for centering the camera. Afterwards, start setting the yaw to the Player's yaw at the time.
newcam_yaw_target = -gMarioState->faceAngle[1]-0x4000; newcam_yaw_target = -gMarioState->faceAngle[1]-0x4000;
newcam_centering = 1; newcam_centering = 1;
} else if (gPlayer1Controller->buttonPressed & R_TRIG && newcam_modeflags & NC_FLAG_XTURN) { } else if (gPlayer1Controller->buttonPressed & R_TRIG && newcam_modeflags & NC_FLAG_XTURN) {