]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
homologation: add remove_wall_around_corn() function
authorFilip Jares <filipjares@post.cz>
Wed, 28 Apr 2010 17:51:43 +0000 (19:51 +0200)
committerFilip Jares <filipjares@post.cz>
Wed, 28 Apr 2010 17:51:43 +0000 (19:51 +0200)
src/robofsm/homologation.cc

index 315addf2f9ab2febbc761e013326b2cee898e9be..a27a52c209f5eea3042b51856bc1de505ff12ec8 100644 (file)
@@ -93,6 +93,11 @@ Pos * get_corn_approach_position(struct corn *corn)
        return p;
 }
 
+void remove_wall_around_corn(struct corn *corn)
+{
+       ShmapSetCircleFlag(corn->position.x, corn->position.y, CORN_NEIGHBOURHOOD_RADIUS_M, 0, MAP_FLAG_WALL);
+}
+
 
 /************************************************************************
  * FSM STATES DECLARATION