This commit is contained in:
parent
6d2057f0c2
commit
6a62be8883
1 changed files with 2 additions and 2 deletions
|
|
@ -35,8 +35,8 @@ public class BomberWeapon extends Weapon{
|
|||
public void update() {
|
||||
|
||||
if(!hit) {
|
||||
for(int i=position.getX()-1; i<=position.getX()+1; i++ ) {
|
||||
for(int j=position.getY()-1; i<=position.getY()+1; j++) {
|
||||
for(int i=position.getX()-1; i<position.getX()+1; i++ ) {
|
||||
for(int j=position.getY()-1; j<position.getY()+1; j++) {
|
||||
System.out.println("i :"+i+" j: "+j);
|
||||
if(InGameState.getMap().posExist(i, j)&& !InGameState.getMap().isPosEmpty(i, j)) {
|
||||
System.out.println("Damaged");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue