ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
34:d9099874bbc3
Parent:
32:1bc731f03a30
Child:
35:dc957021982c
--- a/Cricket/Cricket.cpp	Wed May 08 13:30:12 2019 +0000
+++ b/Cricket/Cricket.cpp	Thu May 09 10:17:13 2019 +0000
@@ -187,9 +187,7 @@
   if(direction_set==1 && checkHit==1){ //if direction is set and ball is hit game continues
   // checks if there is a fielder present in the direction of ball hit
   if (fielder_check!=-1){ 
-     /*updates the position of the ball according the to direction and placement of the fielder 
-       returns 1 once ball has reached fielder */
-     int _check_update=_ball.update_ball(field[fielder_check].x,field[fielder_check].y);
+     int _check_update=_ball.update_ball(field[fielder_check].x,field[fielder_check].y); //checks for position of ball
      
      //printf("Location x %i y %i\n",field[fielder_check].x,field[fielder_check].y);