Added a way to end a game, when its lobby is closed.
This commit is contained in:
@@ -228,6 +228,7 @@ public class Lobby {
|
||||
*/
|
||||
public void closeLobby() {
|
||||
lobbies.remove(this);
|
||||
game.setOngoing(false); // ends game
|
||||
//ClientHandler.broadcastAnnouncementToAll("Lobby nr. " + this.getLobbyID() + " has been closed.");
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user