From afc88a316e88c1898742341c8e6c43837a4c9a5d Mon Sep 17 00:00:00 2001 From: wdbee Date: Sun, 2 May 2010 16:30:24 +0000 Subject: [PATCH] Fix hymie bugs git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2415 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 70d5d0017069c72d549392ea1fe5220767b2a5bb Former-commit-id: d0dbc48cc519d6631ef1d335f61e5b0bc998b89c --- src/drivers/hymie/driver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/hymie/driver.cpp b/src/drivers/hymie/driver.cpp index 6a86c872..22ca111b 100644 --- a/src/drivers/hymie/driver.cpp +++ b/src/drivers/hymie/driver.cpp @@ -5904,7 +5904,7 @@ v2d Driver::getTargetPoint() } if ((avoiding & AVOID_FRONT) && !(avoiding & AVOID_SIDE)) - offset = (float)myoffset = (float)MAX(-seg->width * 0.5f + 0.2f, MIN(seg->width*0.5f-0.2f, offset)); + offset = myoffset = (float)MAX(-seg->width * 0.5f + 0.2f, MIN(seg->width*0.5f-0.2f, offset)); } oldlookahead = (float)(lookahead * factor); @@ -5932,11 +5932,11 @@ v2d Driver::getTargetPoint() ((track->pits.side == TR_LFT && nextoffset > offset) || (track->pits.side == TR_RGT && nextoffset < offset))) { - offset = (float)myoffset = (float)nextoffset; + offset = myoffset = (float)nextoffset; } else { - nextoffset = (float)myoffset = (float)offset; + nextoffset = myoffset = (float)offset; } }