mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:37:40 +02:00
Small Bugfixes (#95)
* Fix Sheets issue 11 * Textboxes: Fix unicode glyphs sometimes not displaying * Fan Club: fix order of operation bug * Conductor: refactor ReportBeat this fixes issues with using crop stomp alongside tempo changes * Built to Scale (Gold): temporarily disable post-processing game renders very incorrectly due to the post processing effects will need someone who knows what they're doing in that field to fix it proper * marked some assets for deletion * I'm dumb and left in debug prints
This commit is contained in:
@ -189,23 +189,20 @@ namespace HeavenStudio
|
||||
{
|
||||
Util.Jukebox.PlayOneShot("metronome");
|
||||
}
|
||||
else if (songPosition <= lastReportedBeat)
|
||||
else if (songPositionInBeats < lastReportedBeat)
|
||||
{
|
||||
lastReportedBeat = (songPosition - (songPosition % secPerBeat));
|
||||
lastReportedBeat = Mathf.Round(songPositionInBeats);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool ReportBeat(ref float lastReportedBeat, float offset = 0, bool shiftBeatToOffset = false)
|
||||
public bool ReportBeat(ref float lastReportedBeat, float offset = 0, bool shiftBeatToOffset = true)
|
||||
{
|
||||
bool result = songPosition > (lastReportedBeat + offset) + secPerBeat;
|
||||
if (result == true)
|
||||
bool result = songPositionInBeats + (shiftBeatToOffset ? offset : 0f) >= (lastReportedBeat) + 1f;
|
||||
if (result)
|
||||
{
|
||||
lastReportedBeat = (songPosition - (songPosition % secPerBeat));
|
||||
|
||||
if (!shiftBeatToOffset)
|
||||
lastReportedBeat += offset;
|
||||
lastReportedBeat += 1f;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user