mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 15:23:14 +08:00
Merge pull request #4334 from smoogipoo/fix-negative-score
Fix scores being stored as ints
This commit is contained in:
commit
3213a9a443
@ -14,7 +14,7 @@ namespace osu.Game.Migrations
|
|||||||
{
|
{
|
||||||
#pragma warning disable 612, 618
|
#pragma warning disable 612, 618
|
||||||
modelBuilder
|
modelBuilder
|
||||||
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687");
|
.HasAnnotation("ProductVersion", "2.2.1-servicing-10028");
|
||||||
|
|
||||||
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapDifficulty", b =>
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapDifficulty", b =>
|
||||||
{
|
{
|
||||||
@ -336,7 +336,7 @@ namespace osu.Game.Migrations
|
|||||||
b.Property<string>("StatisticsJson")
|
b.Property<string>("StatisticsJson")
|
||||||
.HasColumnName("Statistics");
|
.HasColumnName("Statistics");
|
||||||
|
|
||||||
b.Property<int>("TotalScore");
|
b.Property<long>("TotalScore");
|
||||||
|
|
||||||
b.Property<string>("UserString")
|
b.Property<string>("UserString")
|
||||||
.HasColumnName("User");
|
.HasColumnName("User");
|
||||||
|
@ -168,7 +168,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual void PopulateScore(ScoreInfo score)
|
public virtual void PopulateScore(ScoreInfo score)
|
||||||
{
|
{
|
||||||
score.TotalScore = (int)Math.Round(TotalScore.Value);
|
score.TotalScore = (long)Math.Round(TotalScore.Value);
|
||||||
score.Combo = Combo.Value;
|
score.Combo = Combo.Value;
|
||||||
score.MaxCombo = HighestCombo.Value;
|
score.MaxCombo = HighestCombo.Value;
|
||||||
score.Accuracy = Math.Round(Accuracy.Value, 4);
|
score.Accuracy = Math.Round(Accuracy.Value, 4);
|
||||||
|
@ -25,7 +25,7 @@ namespace osu.Game.Scoring
|
|||||||
public ScoreRank Rank { get; set; }
|
public ScoreRank Rank { get; set; }
|
||||||
|
|
||||||
[JsonProperty("total_score")]
|
[JsonProperty("total_score")]
|
||||||
public int TotalScore { get; set; }
|
public long TotalScore { get; set; }
|
||||||
|
|
||||||
[JsonProperty("accuracy")]
|
[JsonProperty("accuracy")]
|
||||||
[Column(TypeName="DECIMAL(1,4)")]
|
[Column(TypeName="DECIMAL(1,4)")]
|
||||||
|
Loading…
Reference in New Issue
Block a user