From 873609a43bc391d81b0d79763b1e05869585c8bf Mon Sep 17 00:00:00 2001 From: galaxyoyo Date: Tue, 13 Jan 2015 18:02:57 +0100 Subject: [PATCH] =?UTF-8?q?Fix=C3=A9=20bug=20dans=20l'affichage=20de=20la?= =?UTF-8?q?=20carte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/galaxyoyo/unknown/editor/MapPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/galaxyoyo/unknown/editor/MapPanel.java b/src/main/java/galaxyoyo/unknown/editor/MapPanel.java index 9785292..8999d03 100644 --- a/src/main/java/galaxyoyo/unknown/editor/MapPanel.java +++ b/src/main/java/galaxyoyo/unknown/editor/MapPanel.java @@ -54,7 +54,7 @@ public class MapPanel extends JPanel g.drawImage(image, x + c.getPosX() * 34 + 2, y + c.getPosY() * 34 + 2, 32, 32, null); }*/ - if (!isEmpty(c.getCoucheTwo().getImage()) || (frame.getSelectedLayerIndex() != 1 && frame.getSelectedLayerIndex() != 2)) + if (!isEmpty(c.getCoucheTwo().getImage()) && frame.getSelectedLayerIndex() >= 1) { g.drawImage(c.getCoucheTwo().getImage(), x + c.getPosX() * 34 + 2, y + c.getPosY() * 34 + 2, 32, 32, null); } @@ -64,7 +64,7 @@ public class MapPanel extends JPanel g.drawImage(image, x + c.getPosX() * 34 + 2, y + c.getPosY() * 34 + 2, 32, 32, null); }*/ - if (!isEmpty(c.getCoucheThree().getImage()) || frame.getSelectedLayerIndex() != 2) + if (!isEmpty(c.getCoucheThree().getImage()) && frame.getSelectedLayerIndex() == 2) { g.drawImage(c.getCoucheThree().getImage(), x + c.getPosX() * 34 + 2, y + c.getPosY() * 34 + 2, 32, 32, null); }