Fix so each players opponents are cached in view

This commit is contained in:
drdev
2014-10-13 05:24:33 +00:00
parent a8457ea75b
commit 71a9f33d4c
3 changed files with 14 additions and 4 deletions

View File

@@ -190,6 +190,11 @@ public class MatchUtil {
game.subscribeToEvents(playbackControl);
}
//ensure opponents set properly
for (Player p : sortedPlayers) {
p.updateOpponentsForView();
}
// It's important to run match in a different thread to allow GUI inputs to be invoked from inside game.
// Game is set on pause while gui player takes decisions
game.getAction().invoke(new Runnable() {