This commit is contained in:
Ziver Koc 2007-05-07 17:56:55 +00:00
parent 4a5f51b137
commit 44e0670852

View file

@ -18,7 +18,7 @@ public class Water extends Building{
private Sprite water;
public Water(Vector2i pos, Player p, int size) {
super(size, pos, p, size%Map.POS_SIZE);
super(Integer.MAX_VALUE, pos, p, size%Map.POS_SIZE);
water = new Sprite("Water",img[(int)(Math.random()*img.length)]);
water.setSize(new Vector2f(size, size));
getNode().add(water);