This commit is contained in:
parent
4a5f51b137
commit
44e0670852
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ public class Water extends Building{
|
||||||
private Sprite water;
|
private Sprite water;
|
||||||
|
|
||||||
public Water(Vector2i pos, Player p, int size) {
|
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 = new Sprite("Water",img[(int)(Math.random()*img.length)]);
|
||||||
water.setSize(new Vector2f(size, size));
|
water.setSize(new Vector2f(size, size));
|
||||||
getNode().add(water);
|
getNode().add(water);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue