Commit 686153ac authored by drallensmith's avatar drallensmith

Fix goof re doDash, doTurn and when they return false

parent 40daeaab
...@@ -263,11 +263,9 @@ void Agent::actionImpl() { ...@@ -263,11 +263,9 @@ void Agent::actionImpl() {
switch(requested_action) { switch(requested_action) {
case DASH: case DASH:
last_action_status = this->doDash(params[0], params[1]); last_action_status = this->doDash(params[0], params[1]);
last_action_status |= wm.self().collidesWithPost(); // Can sometimes get out of collision
break; break;
case TURN: case TURN:
last_action_status = this->doTurn(params[0]); last_action_status = this->doTurn(params[0]);
last_action_status |= wm.self().collidesWithPost(); // ditto
break; break;
case TACKLE: case TACKLE:
last_action_status = this->doTackle(params[0], false); last_action_status = this->doTackle(params[0], 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