From ac0fcc6aced8fb8afcf16c110cc29b34810842de Mon Sep 17 00:00:00 2001 From: Michael VanOverbeek Date: Thu, 16 Feb 2017 00:46:33 +0000 Subject: [PATCH] Codepoints are now stored in 64-bit signed ints --- ShiftOS.Objects/Save.cs | 2 +- ShiftOS.Server.WebAdmin/Program.cs | 2 +- ShiftOS.Server/SaveManager.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ShiftOS.Objects/Save.cs b/ShiftOS.Objects/Save.cs index a901a92..b0dcc03 100644 --- a/ShiftOS.Objects/Save.cs +++ b/ShiftOS.Objects/Save.cs @@ -11,7 +11,7 @@ namespace ShiftOS.Objects public class Save { public string Username { get; set; } - public int Codepoints { get; set; } + public long Codepoints { get; set; } public Dictionary Upgrades { get; set; } public int StoryPosition { get; set; } public string Language { get; set; } diff --git a/ShiftOS.Server.WebAdmin/Program.cs b/ShiftOS.Server.WebAdmin/Program.cs index 145e97c..2f7bd72 100644 --- a/ShiftOS.Server.WebAdmin/Program.cs +++ b/ShiftOS.Server.WebAdmin/Program.cs @@ -336,7 +336,7 @@ namespace ShiftOS.Server.WebAdmin { if (System.IO.Directory.Exists("saves")) { - int cp = 0; + long cp = 0; foreach(var file in System.IO.Directory.GetFiles("saves")) { diff --git a/ShiftOS.Server/SaveManager.cs b/ShiftOS.Server/SaveManager.cs index fcca2bb..d52d32a 100644 --- a/ShiftOS.Server/SaveManager.cs +++ b/ShiftOS.Server/SaveManager.cs @@ -146,7 +146,7 @@ namespace ShiftOS.Server if (args["username"] != null && args["amount"] != null) { string userName = args["username"] as string; - int cpAmount = (int)args["amount"]; + long cpAmount = (long)args["amount"]; if (Directory.Exists("saves")) {