mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:37:40 +02:00
Crop Stomp: He go
This commit is contained in:
@ -190,12 +190,15 @@ namespace RhythmHeavenMania
|
||||
}
|
||||
}
|
||||
|
||||
public bool ReportBeat(ref float lastReportedBeat, float offset = 0)
|
||||
public bool ReportBeat(ref float lastReportedBeat, float offset = 0, bool shiftBeatToOffset = false)
|
||||
{
|
||||
bool result = songPosition > (lastReportedBeat + offset) + secPerBeat;
|
||||
if (result == true)
|
||||
{
|
||||
lastReportedBeat = (songPosition - (songPosition % secPerBeat) + offset);
|
||||
lastReportedBeat = (songPosition - (songPosition % secPerBeat));
|
||||
|
||||
if (!shiftBeatToOffset)
|
||||
lastReportedBeat += offset;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user