diff options
| author | Michael VanOverbeek <[email protected]> | 2017-02-16 00:46:33 +0000 |
|---|---|---|
| committer | Michael VanOverbeek <[email protected]> | 2017-02-16 00:46:33 +0000 |
| commit | ac0fcc6aced8fb8afcf16c110cc29b34810842de (patch) | |
| tree | 1a9ce13297872ed4fa42c26114809789443a3a3d | |
| parent | 88194888fd8b654de583b52121f21ba32542e5c9 (diff) | |
| download | shiftos_thereturn-ac0fcc6aced8fb8afcf16c110cc29b34810842de.tar.gz shiftos_thereturn-ac0fcc6aced8fb8afcf16c110cc29b34810842de.tar.bz2 shiftos_thereturn-ac0fcc6aced8fb8afcf16c110cc29b34810842de.zip | |
Codepoints are now stored in 64-bit signed ints
| -rw-r--r-- | ShiftOS.Objects/Save.cs | 2 | ||||
| -rw-r--r-- | ShiftOS.Server.WebAdmin/Program.cs | 2 | ||||
| -rw-r--r-- | 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<string, bool> 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")) { |
