Withdraw games on start
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@580 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
443e99450b
commit
d2df76cae4
4 changed files with 3 additions and 3 deletions
|
@ -272,7 +272,6 @@ public class ConnectionControl implements IConnectionControl {
|
|||
public void withdrawGame() {
|
||||
offeredGame = null;
|
||||
final UUID uuid = currentGame.getGameID();
|
||||
currentGame = null;
|
||||
run(new SendRunner() {
|
||||
@Override
|
||||
protected void addData(DefaultPacketExtension extension) {
|
||||
|
|
|
@ -132,6 +132,7 @@ public class GameOfferControl extends AbstractGameBeginControl {
|
|||
private void startGame() {
|
||||
abort();
|
||||
connectionControl.startGame();
|
||||
connectionControl.withdrawGame();
|
||||
|
||||
GameSettings settings = gameData.getGameSettings();
|
||||
removeVacant(settings);
|
||||
|
|
|
@ -339,7 +339,7 @@ public class NetworkControl {
|
|||
@Override
|
||||
public void handle() {
|
||||
view.setBottomPanel(BottomPanelType.START_GAME_PANEL);
|
||||
createSettingsControl();
|
||||
view.showGameListPanel(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ public class NetworkGameControl extends GameControl {
|
|||
backEvent.emit();
|
||||
}
|
||||
}));
|
||||
connections.add(view.getQuitEvent().add(new IListener() {
|
||||
connections.add(view.getEndProgramEvent().add(new IListener() {
|
||||
@Override
|
||||
public void handle() {
|
||||
System.exit(0);
|
||||
|
|
Reference in a new issue