Skip to content

Commit

Permalink
Merge pull request #380 from Wieku/dev
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
Wieku authored Oct 30, 2024
2 parents e0f9558 + 7e747bb commit 0e7fba1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/beatmap/difficulty/difficulty.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,11 @@ func (diff *Difficulty) calculate() {

diff.Speed = diff.BaseModSpeed

if s, ok := diff.modSettings[rfType[SpeedSettings]()].(SpeedSettings); ok && diff.BaseModSpeed != s.SpeedChange {
diff.Speed = s.SpeedChange
if s, ok := diff.modSettings[rfType[SpeedSettings]()].(SpeedSettings); ok {
if diff.BaseModSpeed != s.SpeedChange {
diff.Speed = s.SpeedChange
}

diff.adjustPitch = s.AdjustPitch
}

Expand Down

0 comments on commit 0e7fba1

Please sign in to comment.