diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index c14a2f7a..6a2ba67c 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1606,17 +1606,16 @@ class PlayState extends MusicBeatState super.beatHit(curBeat); if (camZoomingInterval < 1) camZoomingInterval = 1; - if (Options.camZoomOnBeat && camZooming && FlxG.camera.zoom < maxCamZoom && curBeat % camZoomingInterval == 0) + if (Options.camZoomOnBeat && camZooming && FlxG.camera.zoom < maxCamZoom && camZoomingInterval != null && curBeat % camZoomingInterval == 0) { FlxG.camera.zoom += 0.015 * camZoomingStrength; camHUD.zoom += 0.03 * camZoomingStrength; } - - iconP1.scale.set(1.2, 1.2); - iconP2.scale.set(1.2, 1.2); - - iconP1.updateHitbox(); - iconP2.updateHitbox(); + + for (i in [iconP1, iconP2] { + i.scale.set(1.2, 1.2); + i.updateHitbox(); + } scripts.call("beatHit", [curBeat]); } @@ -1744,4 +1743,4 @@ typedef PlayStateTransitionData = { var camFollowX:Float; var camFollowY:Float; var camZoom:Float; -} \ No newline at end of file +}