diff options
| author | Michael <[email protected]> | 2017-05-29 20:08:30 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-29 20:08:30 -0400 |
| commit | 37ac4c684ce3904c5ec614362ed99bb9867ca0f3 (patch) | |
| tree | 0f2418da210f1f3c315d10f3b197c15f61291f49 /ShiftOS.WinForms/Applications/ShiftLotto.cs | |
| parent | ff47625d2547deed441a853569f9fe84197e23b6 (diff) | |
| download | shiftos_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/ShiftLotto.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/ShiftLotto.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftLotto.cs b/ShiftOS.WinForms/Applications/ShiftLotto.cs index 5ab8154..3f940c7 100644 --- a/ShiftOS.WinForms/Applications/ShiftLotto.cs +++ b/ShiftOS.WinForms/Applications/ShiftLotto.cs @@ -88,7 +88,7 @@ namespace ShiftOS.WinForms.Applications } else { - if (SaveSystem.CurrentSave.Codepoints - (codePoints * difficulty) <= 0) + if (SaveSystem.CurrentSave.Codepoints - (ulong)(codePoints * difficulty) <= 0) { Infobox.Show("Not enough Codepoints", "You do not have enough Codepoints to gamble this amount!"); } @@ -102,7 +102,7 @@ namespace ShiftOS.WinForms.Applications int winningNumber = rnd.Next(0, difficulty); // Multiply CodePoints * Difficulty - int jackpot = codePoints * difficulty; + ulong jackpot = (ulong)(codePoints * difficulty); // Test the random ints if (guessedNumber == winningNumber) |
