summaryrefslogtreecommitdiff
path: root/digital
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-02 21:47:14 +0200
committerNicolas Schodet2012-05-05 16:15:02 +0200
commit347332160e2b95f787e6a57a77013933428834b4 (patch)
tree64867e5ab9a6f56fe03e5bdc3706b79ed64367b6 /digital
parentb5f6b61c5f1ff91e51002954cfc492dde1c43fdc (diff)
digital/mimor/src/asserv: can go in boat
Diffstat (limited to 'digital')
-rw-r--r--digital/mimot/src/asserv/models.host.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/digital/mimot/src/asserv/models.host.c b/digital/mimot/src/asserv/models.host.c
index 68931682..409598ba 100644
--- a/digital/mimot/src/asserv/models.host.c
+++ b/digital/mimot/src/asserv/models.host.c
@@ -159,7 +159,8 @@ simu_table_test_guybrush (double p_x, double p_y)
return 0;
/* Boats. */
double bx = 325 + (400 - 325) * y / 1500. + 22;
- if ((x < bx || x >= 3000 - bx) && y < 740)
+ if (((x >= bx - 40 && x < bx) || (x >= 3000 - bx && x < 3000 - bx + 40))
+ && y < 740)
return 0;
return 1;
}