Skip to content

Commit

Permalink
Fix missing kick sliders not resetting combo
Browse files Browse the repository at this point in the history
  • Loading branch information
Wieku committed Aug 29, 2023
1 parent a807896 commit 42cd0d1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/rulesets/osu/slider.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (slider *Slider) UpdatePostFor(player *difficultyPlayer, time int64, proces
state := slider.state[player]

if time > int64(slider.hitSlider.GetStartTime())+player.diff.Hit50 && !state.isStartHit {
if len(slider.players) == 1 {
if len(slider.players) == 1 && !state.isHit { //don't fade if slider already ended (and armed the start)
slider.hitSlider.ArmStart(false, float64(time))
}

Expand All @@ -313,12 +313,8 @@ func (slider *Slider) UpdatePostFor(player *difficultyPlayer, time int64, proces
}

if (time >= int64(slider.hitSlider.GetEndTime()) || (processSliderEndsAhead && int64(slider.hitSlider.GetEndTime())-time == 1)) && !state.isHit {
if !state.isStartHit {
if len(slider.players) == 1 {
slider.hitSlider.ArmStart(false, float64(time))
}

state.isStartHit = true
if len(slider.players) == 1 && !state.isStartHit {
slider.hitSlider.ArmStart(false, float64(time))
}

if state.startResult != Miss {
Expand Down

0 comments on commit 42cd0d1

Please sign in to comment.