Fix preview in cases where both delay and offset are specified

This commit is contained in:
Geomitron
2024-09-18 12:11:19 -05:00
parent e847a116a9
commit 929b37be28

View File

@@ -93,7 +93,7 @@ export class ChartSidebarPreviewComponent implements OnInit, OnDestroy {
this.audioFiles, this.audioFiles,
this.instrument, this.instrument,
this.difficulty, this.difficulty,
(this.selectedChart.delay ?? 0) + (this.selectedChart.chart_offset ?? 0) * 1000, this.selectedChart.delay ?? (this.selectedChart.chart_offset ?? 0) * 1000,
this.selectedChart.song_length ?? 5 * 60 * 1000, this.selectedChart.song_length ?? 5 * 60 * 1000,
this.previewDiv.nativeElement, this.previewDiv.nativeElement,
) )