diff options
| author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2022-05-09 15:16:08 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2022-06-05 06:15:46 (GMT) |
| commit | 7f45538eb53235ab4015fcf13533796c8759c7bc (patch) | |
| tree | 79d9a2f60e8fb13cb5356bcc5c6e93259449530b /src/displayapp/screens/Paddle.cpp | |
| parent | 718fbdab98ae80923a548ac03b7843f5d618a4f6 (diff) | |
Apply clang-format to all C++ files
Diffstat (limited to 'src/displayapp/screens/Paddle.cpp')
| -rw-r--r-- | src/displayapp/screens/Paddle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Paddle.cpp b/src/displayapp/screens/Paddle.cpp index 2865db0..1fb2508 100644 --- a/src/displayapp/screens/Paddle.cpp +++ b/src/displayapp/screens/Paddle.cpp @@ -53,7 +53,7 @@ void Paddle::Refresh() { if (ballX >= LV_HOR_RES - ballSize - 1) { dx *= -1; dy += rand() % 3 - 1; // add a little randomization in wall bounce direction, one of [-1, 0, 1] - if (dy > 5) { // limit dy to be in range [-5 to 5] + if (dy > 5) { // limit dy to be in range [-5 to 5] dy = 5; } if (dy < -5) { |
