Skip to content

Commit 2938ff8

Browse files
author
Bytekeeper
committed
Small improvement: Just reset, don't decrement (decrement was used while debugging)
1 parent db92ad6 commit 2938ff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/bk/ass/Simulator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ public int simulate(int frames) {
101101
public void reset() {
102102
for (int i = playerA.size() - 1; i >= 0; i--) {
103103
Agent agent = playerA.get(i);
104-
if (!agent.isFlyer) collision[colindex(agent.x, agent.y)]--;
104+
collision[colindex(agent.x, agent.y)] = 0;
105105
}
106106
for (int i = playerB.size() - 1; i >= 0; i--) {
107107
Agent agent = playerB.get(i);
108-
if (!agent.isFlyer) collision[colindex(agent.x, agent.y)]--;
108+
collision[colindex(agent.x, agent.y)] = 0;
109109
}
110110
resetUnits();
111111
}

0 commit comments

Comments
 (0)