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.
Fork of IEEE_14_Freescale by
Diff: game.cpp
- Revision:
- 51:4892c9238c33
- Parent:
- 49:7d172c133dbf
diff -r ec6cc79132e8 -r 4892c9238c33 game.cpp --- a/game.cpp Thu Apr 03 19:42:44 2014 +0000 +++ b/game.cpp Thu Apr 03 21:24:10 2014 +0000 @@ -334,15 +334,15 @@ void gamePlayer::approachRig(){ while(1){ if(rigOnFire == 1){ - bot.smoothMove(290*11.625-(column*16),0,40); + bot.smoothMove(290*(11.625-(column*16)),0,40); bot.smoothMove(290*(3),0,40); bot.smoothMove((8000.0/360.0)*(-90),1,40); } else if(rigOnFire == 2){ - bot.smoothMove(290*40-(column*16),0,40); + bot.smoothMove(290*(40-(column*16)),0,40); bot.smoothMove(290*(3),0,40); bot.smoothMove((8000.0/360.0)*(-90),1,40); - } else if(rigOnFire == 3){ - bot.smoothMove(290*68.375-(column*16),0,40); + } else if(rigOnFire == 4){ + bot.smoothMove(290*(68.375-(column*16)),0,40); bot.smoothMove(290*(3),0,40); bot.smoothMove((8000.0/360.0)*(-90),1,40); }