aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/ShiftSweeper.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-29 20:08:30 -0400
committerMichael <[email protected]>2017-05-29 20:08:30 -0400
commit37ac4c684ce3904c5ec614362ed99bb9867ca0f3 (patch)
tree0f2418da210f1f3c315d10f3b197c15f61291f49 /ShiftOS.WinForms/Applications/ShiftSweeper.cs
parentff47625d2547deed441a853569f9fe84197e23b6 (diff)
downloadshiftos_thereturn-37ac4c684ce3904c5ec614362ed99bb9867ca0f3.tar.gz
shiftos_thereturn-37ac4c684ce3904c5ec614362ed99bb9867ca0f3.tar.bz2
shiftos_thereturn-37ac4c684ce3904c5ec614362ed99bb9867ca0f3.zip
It's amazing what talking to Rylan can do to an integer datatype.
Diffstat (limited to 'ShiftOS.WinForms/Applications/ShiftSweeper.cs')
-rw-r--r--ShiftOS.WinForms/Applications/ShiftSweeper.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.cs
index f23ed73..772ec26 100644
--- a/ShiftOS.WinForms/Applications/ShiftSweeper.cs
+++ b/ShiftOS.WinForms/Applications/ShiftSweeper.cs
@@ -300,12 +300,12 @@ namespace ShiftOS.WinForms.Applications {
}
public void winGame() {
- int cp = 0;
- int origminecount = gameBombCount * 10;
+ ulong cp = 0;
+ ulong origminecount = (ulong)(gameBombCount * 10);
if (minetimer < 31) cp = (origminecount * 3);
- else if (minetimer < 61) cp = (Int32)(origminecount * 2.5);
+ else if (minetimer < 61) cp = (ulong)(origminecount * 2.5);
else if (minetimer < 91) cp = (origminecount * 2);
- else if (minetimer < 121) cp = (Int32)(origminecount * 1.5);
+ else if (minetimer < 121) cp = (ulong)(origminecount * 1.5);
else if (minetimer > 120) cp = (origminecount * 1);
SaveSystem.TransferCodepointsFrom("shiftsweeper", cp);
panelGameStatus.Image = Properties.Resources.SweeperWinFace;