修改阻断问题

This commit is contained in:
zhoudaxia 2016-08-26 15:54:25 +08:00
parent 0834814b9a
commit 4e13437171
2 changed files with 4 additions and 4 deletions

View File

@ -898,9 +898,9 @@ public class JuniorRobot extends _RobotBase implements IJuniorRobot {
// Make sure that we rescan if the robot did not execute anything this turn.
// When the robot executes the currentTurn will automatically be increased by 1,
// So when the turn stays the same, the robot did not take any action this turn.
if (lastTurn == currentTurn) {
peer.rescan(); // Spend a turn on rescanning
}
peer.rescan(); // Spend a turn on rescanning
}
}
}

View File

@ -165,7 +165,7 @@ public final class RobotPeer implements IRobotPeerBattle, IRobotPeer {
teamMembers = null;
isTeamLeader = false;
teamIndex = -1; // Must be set to -1 when robot is not in a team
} else {
} else if(team != null){
teamName = team.getName();
teamMembers = team.getMemberNames();
isTeamLeader = team.size() == 1; // That is current team size, more might follow later. First robot is leader