Skip to content

Commit

Permalink
constrain decimals to 2 places
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoes1286 committed Jun 25, 2024
1 parent 42015f5 commit b1c5200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Soundtrack/SoundtrackPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public virtual void SwitchSong(Track newTrack, float timeOverride = 0) {

SongLength = newTrack.Clip.length;

PluginMain.DebugLog.LogInfo($"{Time.time}: Playing track {newTrack.Name} ({newTrack.Type}, metadata {newTrack.Metadata.ToOneLine()}) of calculated length {SongLength} with override time {timeOverride}.");
PluginMain.DebugLog.LogInfo($"{Time.time:F}: Playing track {newTrack.Name} ({newTrack.Type}, metadata {newTrack.Metadata.ToOneLine()}) of calculated length {SongLength:F} with override time {timeOverride}.");

//If current source is 0, new source is 1, and vice versa.
int newSource = CurrentAudioSource == 0 ? 1 : 0;
Expand Down

0 comments on commit b1c5200

Please sign in to comment.