Fix logic in modelSyncronizer

This commit is contained in:
Felix Koppe
2024-12-06 10:54:02 +01:00
parent aacc0440b3
commit c4e7fb1d41

View File

@@ -88,17 +88,17 @@ public void confirm() {
GameView gameView = (GameView) app.getView();
if(a != null && b != null) {
selectPiece(a);
selectPiece(b);
app.getGameLogic().selectPiece(a);
app.getGameLogic().selectPiece(b);
gameView.getBoardHandler().clearSelectable();
} else if (a != null) {
selectPiece(a);
app.getGameLogic().selectPiece(a);
gameView.getBoardHandler().clearSelectable();
} else {
if(null == card) {
selectCard(null);
app.getGameLogic().selectCard(null);
} else {
selectCard(card);
app.getGameLogic().selectCard(card);
gameView.getGuiHandler().clearSelectableCards();
}
}