Fix uncleared selectables when a player concedes and restarts next game

This commit is contained in:
Anthony Calosa
2020-04-23 14:07:15 +08:00
parent 96e243e4c9
commit ac9636c44e
2 changed files with 2 additions and 0 deletions

View File

@@ -966,6 +966,7 @@ public final class CMatchUI
players = new FCollection<>(new PlayerView[]{players.get(1), players.get(0)}); players = new FCollection<>(new PlayerView[]{players.get(1), players.get(0)});
} }
initMatch(players, myPlayers); initMatch(players, myPlayers);
clearSelectables(); //fix uncleared selection
actuateMatchPreferences(); actuateMatchPreferences();

View File

@@ -147,6 +147,7 @@ public class MatchController extends AbstractGuiGame {
} }
view = new MatchScreen(playerPanels); view = new MatchScreen(playerPanels);
view.resetFields(); view.resetFields();
clearSelectables(); //fix uncleared selection
if (noHumans) { if (noHumans) {
//add special object that pauses game if screen touched //add special object that pauses game if screen touched