5

Dependents:   Labirint

Revision:
3:c054c5e52370
Parent:
2:aae12f64103b
--- a/Paddle.cpp	Sun Mar 05 21:15:40 2017 +0000
+++ b/Paddle.cpp	Sun Mar 05 23:10:27 2017 +0000
@@ -40,11 +40,11 @@
     }
 
     // check the y origin to ensure that the paddle doesn't go off screen
-    if (_y < 0) {
-        _y = 0;
+    if (_y < 1) {
+        _y = 1;
     }
-    if (_y > HEIGHT - _height) {
-        _y = HEIGHT - _height;
+    if (_y > HEIGHT - _height - 1) {
+        _y = HEIGHT - _height - 1;
     }
 }