This commit is contained in:
Jesper Lundin 2007-04-18 17:16:00 +00:00
parent 6d2057f0c2
commit 6a62be8883

View file

@ -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");