Skip to content

Commit aa83d8b

Browse files
committed
版本1.7:完善功能,将爆炸后的爆炸事件清空。
1 parent c486214 commit aa83d8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TankWar/src/Explode.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ public Explode(int x, int y, TankClient tc) {
1212
this.tc = tc;
1313
}
1414
public void draw(Graphics g) {
15-
if(!live) return;
15+
if(!live) {
16+
tc.explodes.remove(this);
17+
return;
18+
}
1619

1720
if(step == diamater.length) {
1821
live = false;

0 commit comments

Comments
 (0)