Commit ce5bce42 authored by drallensmith's avatar drallensmith

Corrected re Pass solving collision with ball

parent 1a421360
......@@ -890,8 +890,12 @@ bool
Agent::doPassTo(int receiver)
{
Force_Pass pass;
pass.get_pass_to_player(this->world(), receiver);
return pass.execute(this);
const WorldModel & wm = this->world();
pass.get_pass_to_player(wm, receiver);
if (pass.execute(this) || wm.self().collidesWithBall()) { // can sometimes fix
return true;
}
return 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