Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSantiagoYT committed Dec 28, 2024
1 parent 673e431 commit 4981345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2151,19 +2151,19 @@ class PlayState extends MusicBeatState
var fps:Float = 60;
var bfCanPan:Bool = false;
var dadCanPan:Bool = false;
var clear:Bool = false;
var doPan:Bool = false;
function camPanRoutine(anim:String = 'singUP', who:String = 'bf'):Void {
if (SONG.notes[curSection] != null)
{
fps = FlxG.updateFramerate;
bfCanPan = SONG.notes[curSection].mustHitSection;
dadCanPan = !SONG.notes[curSection].mustHitSection;
switch (who) {
case 'bf' | 'boyfriend': clear = bfCanPan;
case 'oppt' | 'dad': clear = dadCanPan;
case 'bf' | 'boyfriend': doPan = bfCanPan;
case 'oppt' | 'dad': doPan = dadCanPan;
}
//FlxG.elapsed is stinky poo poo for this, it just makes it look jank as fuck
if (clear) {
if (doPan) {
if (fps == 0) fps = 1;
switch (anim.split('-')[0])
{
Expand Down

3 comments on commit 4981345

@StinkTheStinker
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont get it

@JordanSantiagoYT
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you make a variable called clear then haxe thinks you're redefining the clear variable

Image

@moxie-coder
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you make a variable called clear then haxe thinks you're redefining the clear variable

Image

cuz it was already defined in an parent class before (which it tells you)

Please sign in to comment.