Mohsin Riaz / Mbed 2 deprecated Pong-MiP

Dependencies:   mbed tsi_sensor

Revision:
3:39316d8caa86
Parent:
2:292e47672dbe
diff -r 292e47672dbe -r 39316d8caa86 source/bola.h
--- a/source/bola.h	Sun May 17 02:41:51 2020 +0000
+++ b/source/bola.h	Sun May 17 02:58:07 2020 +0000
@@ -76,7 +76,7 @@
 {
     if (
         y < p->y + p->h &&
-        y > p->y - p->h &&
+        y > p->y &&
         x < p->x + p->w) {
         if (x > p->x) {
             float diff = y - (p->y - p->h);
@@ -97,7 +97,7 @@
 {
     float xpi = M_PI / 180;
     if (y < p->y + p->h &&
-            y > p->y - p->h &&
+            y > p->y &&
             x > p->x - p->w) {
         if (x < p->x) {
             //xspeed *= -1;