Skip to content

Commit

Permalink
Fixed mask CW/CCW
Browse files Browse the repository at this point in the history
  • Loading branch information
Goatgarien committed Apr 28, 2023
1 parent 3a2854f commit 8ee60be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions BAKKA-Editor/CircleView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ private float GetTotalMeasureShowNotes(Chart chart)
InitialSpeed.HiSpeed = 1.0;
}
HispeedChanges.Add(InitialSpeed);
//Random todos that im too lazy to put in applicable locations
//TODO: Add option to disable hispeed gimmick in visual
//TODO: add "time" to notes so we can compare against it every time instead of always calculating what time a note is at
//TODO: add function to reevaluate the time of every note when bpm or TS is added/removed.

//add all hispeed changes to list that happen within the current total time to show notes
float tempTotalTime = ((displayFrames / 60.0f) * 1000.0f);
float currentTime = chart.GetTime(new BeatInfo(CurrentMeasure));
Expand All @@ -100,14 +105,13 @@ private float GetTotalMeasureShowNotes(Chart chart)
for (int i = 0; i < HispeedChanges.Count; i++)
{
float timeDiff;
float itemTime;
float itemTime = chart.GetTime(HispeedChanges[i].BeatInfo);
float modifiedTime;
if (chart.GetTime(HispeedChanges[i].BeatInfo) <= (tempTotalTime + currentTime))
if (itemTime <= (tempTotalTime + currentTime))
{
if (i == 0)
itemTime = currentTime;
else
itemTime = chart.GetTime(HispeedChanges[i].BeatInfo);

if (i != HispeedChanges.Count - 1)
{
float tempTestITimeDiff = (currentTime + tempTotalTime) - itemTime;
Expand Down
4 changes: 2 additions & 2 deletions BAKKA-Editor/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ internal enum GimmickType

internal enum MaskType
{
Clockwise = 0,
CounterClockwise = 1,
Clockwise = 1,
CounterClockwise = 0,
Center = 2
}

Expand Down

0 comments on commit 8ee60be

Please sign in to comment.