Commit beceb50a authored by drallensmith's avatar drallensmith

Cleanup bhv_basic_move.cpp

parent adc0ebf2
...@@ -107,15 +107,17 @@ Bhv_BasicMove::execute( PlayerAgent * agent ) ...@@ -107,15 +107,17 @@ Bhv_BasicMove::execute( PlayerAgent * agent )
agent->debugClient().setTarget( target_point ); agent->debugClient().setTarget( target_point );
agent->debugClient().addCircle( target_point, dist_thr ); agent->debugClient().addCircle( target_point, dist_thr );
if (ball.rposValid() || wm.self().collidesWithPost()) {
success = true;
} else {
success = false;
}
if ( Body_GoToPoint( target_point, dist_thr, dash_power if ( Body_GoToPoint( target_point, dist_thr, dash_power
).execute( agent ) || ).execute( agent ) ) {
Body_TurnToBall().execute( agent ) ) { // OK
if (ball.rposValid() || wm.self().collidesWithPost()) { } else if (Body_TurnToBall().execute( agent ) ) {
success = true; // OK
} else {
success = false;
}
} else { } else {
success = false; success = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment