Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 3:39316d8caa86, committed 2020-05-17
- Comitter:
- immou
- Date:
- Sun May 17 02:58:07 2020 +0000
- Parent:
- 2:292e47672dbe
- Commit message:
- changes;
Changed in this revision
| source/bola.h | Show annotated file Show diff for this revision Revisions of this file | 
--- 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;
    