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.
This commit is contained in:
Aren 2017-05-06 17:41:49 +02:00 committed by GitHub
parent 57277a01d6
commit c56b59a8a3

View file

@ -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();
}