From cf484a6859804f27e530180eb1294864fae99a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3lie=20*?= <44349276+tetelie@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:57:44 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20visibilit=C3=A9=20des=20?= =?UTF-8?q?ponts=20posable=20et=20supprimable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/fr/hashimiste/impl/gui/component/GameComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/hashimiste/impl/gui/component/GameComponent.java b/src/main/java/fr/hashimiste/impl/gui/component/GameComponent.java index 2d60c48..62cd625 100644 --- a/src/main/java/fr/hashimiste/impl/gui/component/GameComponent.java +++ b/src/main/java/fr/hashimiste/impl/gui/component/GameComponent.java @@ -76,7 +76,7 @@ protected void paintComponent(Graphics g) { g2.setColor(color); // Si les deux ils du pont ne sont pas pleines - if(!isIsleFull(bridge.getIle1()) && !isIsleFull(bridge.getIle2())) { + if((!isIsleFull(bridge.getIle1()) && !isIsleFull(bridge.getIle2())) || isBridgeExist(bridge.getIle1(), bridge.getIle2())) { // Si le pont est horizontal if (estHorizontal(bridge)) {