Commit cfdad29c authored by drallensmith's avatar drallensmith

Merge branch 'mark_player_better' into randomization - bring in update

parents 8283afa0 d0ae33f4
......@@ -804,10 +804,12 @@ bool Agent::doMarkPlayer(int unum) {
int count = 0;
for ( PlayerPtrCont::const_iterator it = wm.opponentsFromSelf().begin(); it != o_end; ++it ) {
if ( (*it)->distFromBall() < 5 ) {
if ((kicker_unum == -1) || (kicker_unum != unum)) { // try to obey action instruction
kicker_pos = (*it)->pos();
kicker_unum = (*it)->unum();
}
}
}
for ( PlayerPtrCont::const_iterator it = wm.opponentsFromSelf().begin(); it != o_end; ++it ) {
if ( (*it)-> unum() == unum ) {
......
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