diff --git a/src/main/java/gameplay/match/match.java b/src/main/java/gameplay/match/match.java index bf545a3..1e82cc8 100644 --- a/src/main/java/gameplay/match/match.java +++ b/src/main/java/gameplay/match/match.java @@ -146,6 +146,7 @@ public class match { } engine.remove_uiElement(matchWon); + engine.remove_uiElement(inputListP1); //replacement des sprites objP1.translate(new Vector3f(-p1.getPosX(), -p1.getPosY())); @@ -153,6 +154,8 @@ public class match { objP1.getShadow().translate(new Vector3f(0f,-p1.getPosY(),0)); objP2.getShadow().translate(new Vector3f(0f,-p2.getPosY(),0)); + acCode = 0; + } /** @@ -397,21 +400,16 @@ public class match { case 21: try { handleThrows(p1, p2); - } catch (IndexOutOfBoundsException e) {} try { handleHits(p1, p2, inputsP2); - - }catch (IndexOutOfBoundsException e) {}; - + } catch (IndexOutOfBoundsException e) {}; try { - handleThrows(p2,p1); } catch (IndexOutOfBoundsException e) {} try { - handleHits(p2, p1, inputsP1); - }catch (IndexOutOfBoundsException e) {}; + } catch (IndexOutOfBoundsException e) {}; acCode = 22; break;