From 6391325fd94ea1bc796266a6d82fc285ca00a437 Mon Sep 17 00:00:00 2001 From: Voidious Date: Sun, 30 Sep 2012 15:09:02 -0400 Subject: [PATCH] fix bug with teams battles --- scripts/rr.sh | 2 +- src/robowiki/runner/BattleListener.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/rr.sh b/scripts/rr.sh index b77420a..35d0e79 100755 --- a/scripts/rr.sh +++ b/scripts/rr.sh @@ -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 $* diff --git a/src/robowiki/runner/BattleListener.java b/src/robowiki/runner/BattleListener.java index eabe005..05303cd 100644 --- a/src/robowiki/runner/BattleListener.java +++ b/src/robowiki/runner/BattleListener.java @@ -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); } }