Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorak42 committed Jan 17, 2013
1 parent f529e72 commit f2b1d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/battlecode/world/GameWorld.java
Expand Up @@ -706,8 +706,8 @@ public void visitDeathSignal(DeathSignal s) {
if (obj instanceof InternalRobot) {
InternalRobot r = (InternalRobot) obj;
RobotMonitor.killRobot(ID);
if (ir.type == RobotType.SOLDIER && (ir.getCapturingType() != null))
teamCapturingNumber[ir.getTeam().ordinal()]--;
if (r.type == RobotType.SOLDIER && (r.getCapturingType() != null))
teamCapturingNumber[r.getTeam().ordinal()]--;
if (r.hasBeenAttacked()) {
gameStats.setUnitKilled(r.getTeam(), currentRound);
}
Expand Down

0 comments on commit f2b1d73

Please sign in to comment.