aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
authorAren <[email protected]>2017-05-06 17:41:49 +0200
committerGitHub <[email protected]>2017-05-06 17:41:49 +0200
commitc56b59a8a37c108a18aadc719091b5a6827931e3 (patch)
treef9e0aecbdd4ab8664679bac4c0202e8fd5290cdc /ShiftOS.WinForms/Applications
parent57277a01d685b0e29a79e5d74a1465a2ceb23ef9 (diff)
downloadshiftos_thereturn-c56b59a8a37c108a18aadc719091b5a6827931e3.tar.gz
shiftos_thereturn-c56b59a8a37c108a18aadc719091b5a6827931e3.tar.bz2
shiftos_thereturn-c56b59a8a37c108a18aadc719091b5a6827931e3.zip
Stop pong from ending early.
Pong used to end early because the game would check if secondsleft was 1 after removing one, meaning it would be at 2. Now it checks if secondsleft is 0 which should resolve the issue.
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/Pong.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/Pong.cs b/ShiftOS.WinForms/Applications/Pong.cs
index d63f406..92a2039 100644
--- a/ShiftOS.WinForms/Applications/Pong.cs
+++ b/ShiftOS.WinForms/Applications/Pong.cs
@@ -629,7 +629,7 @@ namespace ShiftOS.WinForms.Applications
if (this.Left < Screen.PrimaryScreen.Bounds.Width)
{
secondsleft = secondsleft - 1;
- if (secondsleft == 1)
+ if (secondsleft == 0)
{
CompleteLevel();
}