Skip to content

Commit 9e7cbf9

Browse files
committed
Slider inherits from extras field
1 parent 02c3854 commit 9e7cbf9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

beatmap/objects/slider.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,16 @@ func (self *Slider) Update(time int64) bool {
251251

252252
func (self *Slider) playSample(sampleSet, additionSet, sample int) {
253253
if sampleSet == 0 {
254-
sampleSet = self.Timings.Current.SampleSet
254+
sampleSet = self.objData.sampleSet
255+
if sampleSet == 0 {
256+
sampleSet = self.Timings.Current.SampleSet
257+
}
258+
}
259+
260+
if additionSet == 0 {
261+
additionSet = self.objData.additionSet
255262
}
263+
256264
audio.PlaySample(sampleSet, additionSet, sample, self.Timings.Current.SampleIndex, self.Timings.Current.SampleVolume)
257265
}
258266

0 commit comments

Comments
 (0)