mirror of
https://github.com/lov3b/Pong.git
synced 2024-11-10 07:20:12 +01:00
score was off by one
This commit is contained in:
parent
59c1ab4533
commit
970fdcb045
@ -34,6 +34,6 @@ void Score::incrementScore(const Side side) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (incrementedScore > MAX_SCORE)
|
if (incrementedScore >= MAX_SCORE)
|
||||||
sideWon_ = side;
|
sideWon_ = side;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user