fixes bug
This commit is contained in:
parent
247c8aed5c
commit
cd72eae378
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ public class ShopeUi extends Actor{
|
||||||
List<Face> shope = game.getShope();
|
List<Face> shope = game.getShope();
|
||||||
for (int i = 0; i < shope.size(); i++) {
|
for (int i = 0; i < shope.size(); i++) {
|
||||||
Face face = shope.get(i);
|
Face face = shope.get(i);
|
||||||
|
|
||||||
|
if (face == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
face.setTransform(new Transform(((Gdx.graphics.getWidth()/4)*i)+(Gdx.graphics.getWidth()/4), Gdx.graphics.getHeight()/8, 64, 64));
|
face.setTransform(new Transform(((Gdx.graphics.getWidth()/4)*i)+(Gdx.graphics.getWidth()/4), Gdx.graphics.getHeight()/8, 64, 64));
|
||||||
|
|
||||||
face.render(batch);
|
face.render(batch);
|
||||||
|
|
Loading…
Add table
Reference in a new issue