Skip to content

Commit

Permalink
fix bug with teams battles
Browse files Browse the repository at this point in the history
  • Loading branch information
Voidious committed Sep 30, 2012
1 parent 891adcd commit 6391325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/rr.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
java -cp lib/roborunner-1.2.2.jar:lib/guava-12.0.1.jar:robocodes/r1/libs/robocode.jar robowiki.runner.RoboRunner $*
java -cp lib/roborunner-1.2.3.jar:lib/guava-12.0.1.jar:robocodes/r1/libs/robocode.jar robowiki.runner.RoboRunner $*
3 changes: 1 addition & 2 deletions src/robowiki/runner/BattleListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public void onBattleCompleted(BattleCompletedEvent completedEvent) {
RobotResults[] robotResultsArray =
RobotResults.convertResults(completedEvent.getIndexedResults());
for (RobotResults robotResults : robotResultsArray) {
_botResults.put(
robotResults.getRobot().getNameAndVersion(), robotResults);
_botResults.put(robotResults.getTeamLeaderName(), robotResults);
}
}

Expand Down

0 comments on commit 6391325

Please sign in to comment.