mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05:00
Fix a bug where the Camera Zoom toggle didn't work.
This commit is contained in:
parent
f3e9a4f32a
commit
138dfd61e8
1 changed files with 4 additions and 1 deletions
|
@ -1353,7 +1353,10 @@ class PlayState extends MusicBeatSubState
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only zoom camera if we are zoomed by less than 35%.
|
// 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%)
|
// Zoom camera in (1.5%)
|
||||||
currentCameraZoom += cameraZoomIntensity * defaultCameraZoom;
|
currentCameraZoom += cameraZoomIntensity * defaultCameraZoom;
|
||||||
|
|
Loading…
Reference in a new issue