From 8a8cf2cc785b384956a248729b70278a37c6a937 Mon Sep 17 00:00:00 2001 From: M&M Date: Mon, 28 Jun 2021 21:54:52 -0700 Subject: [PATCH] fix mom camera also: - optimize switch case - remove unnecessary code --- source/PlayState.hx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index daca7ed..7e912ea 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -2318,18 +2318,12 @@ class PlayState extends MusicBeatState switch (dad.curCharacter) { - case 'mom': + case 'mom' | 'mom-car': camFollow.y = dad.getMidpoint().y; - case 'senpai': - camFollow.y = dad.getMidpoint().y - 430; - camFollow.x = dad.getMidpoint().x - 100; - case 'senpai-angry': + case 'senpai' | 'senpai-angry': camFollow.y = dad.getMidpoint().y - 430; camFollow.x = dad.getMidpoint().x - 100; } - - if (dad.curCharacter == 'mom') - vocals.volume = 1; } if (PlayState.SONG.notes[Std.int(curStep / 16)].mustHitSection && camFollow.x != boyfriend.getMidpoint().x - 100)