From 347332160e2b95f787e6a57a77013933428834b4 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 2 May 2012 21:47:14 +0200 Subject: digital/mimor/src/asserv: can go in boat --- digital/mimot/src/asserv/models.host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'digital') 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; } -- cgit v1.2.3