Fix so combat arrows appear red again

This commit is contained in:
drdev
2014-09-27 22:35:34 +00:00
parent 2921bc6a9f
commit 528642a11e
2 changed files with 5 additions and 1 deletions

View File

@@ -207,6 +207,11 @@ public class MatchUtil {
game.subscribeToEvents(playbackControl); game.subscribeToEvents(playbackControl);
} }
//ensure opponents set properly
for (PlayerView pv : gameViews.get(0).getPlayers()) {
pv.setOpponents(gameViews.get(0).getPlayerViews(players.getKey(pv.getId()).getOpponents()));
}
// It's important to run match in a different thread to allow GUI inputs to be invoked from inside game. // 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 is set on pause while gui player takes decisions
game.getAction().invoke(new Runnable() { game.getAction().invoke(new Runnable() {

View File

@@ -367,7 +367,6 @@ public abstract class LocalGameView implements IGameView {
view = new PlayerView(p.getLobbyPlayer(), p.getId()); view = new PlayerView(p.getLobbyPlayer(), p.getId());
MatchUtil.players.put(p, view); MatchUtil.players.put(p, view);
getPlayerView(p, view); getPlayerView(p, view);
view.setOpponents(getPlayerViews(p.getOpponents()));
} }
return view; return view;
} }