From fe82ac76acaebef24a42a900587abf5110c580d6 Mon Sep 17 00:00:00 2001 From: drdev Date: Tue, 16 Dec 2014 06:05:12 +0000 Subject: [PATCH] Reduce appearance of character --- .../forge/screens/planarconquest/CommandCenterScreen.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/forge-gui-mobile/src/forge/screens/planarconquest/CommandCenterScreen.java b/forge-gui-mobile/src/forge/screens/planarconquest/CommandCenterScreen.java index 0f89e318642..668e94ca50c 100644 --- a/forge-gui-mobile/src/forge/screens/planarconquest/CommandCenterScreen.java +++ b/forge-gui-mobile/src/forge/screens/planarconquest/CommandCenterScreen.java @@ -215,9 +215,11 @@ public class CommandCenterScreen extends FScreen implements IVCommandCenter { public void draw(HexagonTile tile, int x, int y, int w, int h) { g.drawImage(FSkinImage.HEXAGON_TILE, x, y, w, h); - float pedestalWidth = w * 0.2f;//0.8f; - float pedestalHeight = pedestalWidth * walker.getHeight() / walker.getWidth(); - g.drawImage(walker, x + (w - pedestalWidth) / 2, y + h / 2 - pedestalHeight * 0.8f, pedestalWidth, pedestalHeight); + if (x < getWidth() / 2 && x + w > getWidth() / 2 && y < getHeight() / 2 && y + h > getHeight() / 2) { + float pedestalWidth = w * 0.8f; + float pedestalHeight = pedestalWidth * walker.getHeight() / walker.getWidth(); + g.drawImage(walker, x + (w - pedestalWidth) / 2, y + h / 2 - pedestalHeight * 0.8f, pedestalWidth, pedestalHeight); + } } }