Skip to content

Commit

Permalink
Fixed bug which would not break out of main game loop when player has…
Browse files Browse the repository at this point in the history
… won on first possible chance of winning.
  • Loading branch information
redleek committed Dec 7, 2014
1 parent f422744 commit 76ef050
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TacticalSpaceCheeseRacer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,11 @@ static void Main(string[] args)
break;
}
}
// Re-break as we can't double-break out of 2 for loops.
if (gamewon)
{
break;
}

// Check if the player is on a cheese square
for (int item = 0; item < cheese_squares.Length; item++)
Expand Down

0 comments on commit 76ef050

Please sign in to comment.