Merge branch 'development' of https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-01 into development
This commit is contained in:
@@ -100,6 +100,7 @@ private void mainMenu() {
|
||||
private void tryHost() {
|
||||
int port = 0;
|
||||
String text = hostDialog.getPort();
|
||||
app.getGameLogic().selectHost("");
|
||||
|
||||
try {
|
||||
port = Integer.parseInt(text);
|
||||
@@ -113,7 +114,6 @@ private void tryHost() {
|
||||
}
|
||||
hostDialog.connectServerAsClient();
|
||||
app.getModelSynchronize().setHost(port);
|
||||
app.getGameLogic().selectHost("");
|
||||
//app.getAcousticHandler().playSound(MdgaSound.WRONG_INPUT);
|
||||
return;
|
||||
}
|
||||
@@ -128,6 +128,7 @@ private void tryJoin() {
|
||||
int port = 0;
|
||||
String ip = joinDialog.getIpt();
|
||||
String portText = joinDialog.getPort();
|
||||
app.getGameLogic().selectJoin("");
|
||||
|
||||
try {
|
||||
// Validate the port
|
||||
@@ -141,7 +142,6 @@ private void tryJoin() {
|
||||
app.getModelSynchronize().setName(startDialog.getName());
|
||||
joinDialog.setHostname(ip);
|
||||
joinDialog.connectToServer();
|
||||
app.getGameLogic().selectJoin("");
|
||||
return;
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
|
||||
Reference in New Issue
Block a user