From 671c152463b4be19a49e04c57a68401dcf52e29a Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 26 Feb 2026 06:52:51 -0500 Subject: [PATCH] Fix a bug when the HUD camera zoom would be disabled when the MAIN camera zoom (different camera!) was above 1.35x. --- source/funkin/play/PlayState.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index 3e36360dd..d9e3fe7d0 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -1844,8 +1844,11 @@ class PlayState extends MusicBeatSubState iconP2?.onStepHit(Std.int(Conductor.instance.currentStep)); // Only bop camera if zoom level is below 135% + // This is an arbitrary number chosen so that the camera doesn't move insanely far in when the bop speed is fast. + final MAX_RELATIVE_CAM_ZOOM:Float = 1.35; + if (Preferences.zoomCamera - && FlxG.camera.zoom < (1.35 * FlxCamera.defaultZoom) + && camHUD.zoom < (MAX_RELATIVE_CAM_ZOOM * defaultHUDCameraZoom) && cameraZoomRate > 0 && (Conductor.instance.currentStep + cameraZoomRateOffset * Constants.STEPS_PER_BEAT) % (cameraZoomRate * Constants.STEPS_PER_BEAT) == 0) {