Skip to content

Commit

Permalink
Merge pull request #137 from smoogipoo/object-count-int-type
Browse files Browse the repository at this point in the history
Fix beatmap object counts data type
  • Loading branch information
peppy authored Aug 14, 2023
2 parents 208ee81 + c26b526 commit 9f92b32
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions osu.Server.Queues.ScoreStatisticsProcessor/Models/Beatmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public class Beatmap

public int beatmapset_id { get; set; }

public ushort countTotal { get; set; }
public ushort countNormal { get; set; }
public ushort countSlider { get; set; }
public ushort countSpinner { get; set; }
public uint countTotal { get; set; }
public uint countNormal { get; set; }
public uint countSlider { get; set; }
public uint countSpinner { get; set; }
public int total_length { get; set; }
public float diff_drain { get; set; }
public float diff_size { get; set; }
Expand All @@ -37,9 +37,9 @@ public class Beatmap
public APIBeatmap ToAPIBeatmap() => new APIBeatmap
{
OnlineID = beatmap_id,
CircleCount = countNormal,
SliderCount = countSlider,
SpinnerCount = countSpinner,
CircleCount = (int)countNormal,
SliderCount = (int)countSlider,
SpinnerCount = (int)countSpinner,
DrainRate = diff_drain,
CircleSize = diff_size,
OverallDifficulty = diff_overall,
Expand Down

0 comments on commit 9f92b32

Please sign in to comment.