Fix a bug when the HUD camera zoom would be disabled when the MAIN camera zoom (different camera!) was above 1.35x.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user