From 4d7288bf4ea1e25c8f984d42f7aed4cc84fb49ee Mon Sep 17 00:00:00 2001 From: SenDoesStuff <132237065+SenDoesStuff@users.noreply.github.com> Date: Mon, 5 May 2025 09:24:05 -0400 Subject: [PATCH] variable name change --- source/funkin/game/PlayState.hx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 44387d4b..810120dd 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -233,9 +233,10 @@ class PlayState extends MusicBeatState */ public var camZoomingStrength:Float = 1; /** - * Number of Beats since the last Time Signature Change + * Number of Beats to offset camZooming by. + * Will automatically be set when a Time Signature Change Occurs. */ - public var beatsSinceChange:Float = 0; + public var camZoomingOffset:Float = 0; /** * The curBeat position of the last Time Signature Change that occured */ @@ -1828,9 +1829,9 @@ class PlayState extends MusicBeatState { super.beatHit(curBeat); - beatsSinceChange = curBeat - lastTimeSigBeat; + camZoomingOffset = curBeat - lastTimeSigBeat; - if (Options.camZoomOnBeat && camZooming && FlxG.camera.zoom < maxCamZoom && beatsSinceChange % camZoomingInterval == 0) { + if (Options.camZoomOnBeat && camZooming && FlxG.camera.zoom < maxCamZoom && camZoomingOffset % camZoomingInterval == 0) { FlxG.camera.zoom += 0.015 * camZoomingStrength; camHUD.zoom += 0.03 * camZoomingStrength; }