Fix score display when winning
This commit is contained in:
parent
0b6551ac52
commit
ee91c550a2
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ byte waitForButton() {
|
||||||
void endGame(LiquidCrystal lcd, bool win, byte score) {
|
void endGame(LiquidCrystal lcd, bool win, byte score) {
|
||||||
lcd.clear();
|
lcd.clear();
|
||||||
if (win) {
|
if (win) {
|
||||||
|
score++; // Compensate for missing "+1" in the main loop.
|
||||||
lcd.print("Bravo!");
|
lcd.print("Bravo!");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue