Merge pull request #416 from FunkinCrew/bugfix/camera-zoom-option

Fix a bug where the Camera Zoom toggle didn't work.
This commit is contained in:
Cameron Taylor 2024-03-25 14:52:24 -04:00 committed by GitHub
commit 6a0672684c

View file

@ -1353,7 +1353,10 @@ class PlayState extends MusicBeatSubState
}
// Only zoom camera if we are zoomed by less than 35%.
if (FlxG.camera.zoom < (1.35 * defaultCameraZoom) && cameraZoomRate > 0 && Conductor.instance.currentBeat % cameraZoomRate == 0)
if (Preferences.zoomCamera
&& FlxG.camera.zoom < (1.35 * defaultCameraZoom)
&& cameraZoomRate > 0
&& Conductor.instance.currentBeat % cameraZoomRate == 0)
{
// Zoom camera in (1.5%)
currentCameraZoom += cameraZoomIntensity * defaultCameraZoom;