aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael VanOverbeek <[email protected]>2017-02-16 00:46:33 +0000
committerMichael VanOverbeek <[email protected]>2017-02-16 00:46:33 +0000
commitac0fcc6aced8fb8afcf16c110cc29b34810842de (patch)
tree1a9ce13297872ed4fa42c26114809789443a3a3d
parent88194888fd8b654de583b52121f21ba32542e5c9 (diff)
downloadshiftos_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.cs2
-rw-r--r--ShiftOS.Server.WebAdmin/Program.cs2
-rw-r--r--ShiftOS.Server/SaveManager.cs2
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"))
{