Browse Source

Add system message

# Conflicts:
#	client/CServerHandler.cpp
nordsoft 3 years ago
parent
commit
c2f5628fc5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      client/CServerHandler.cpp

+ 2 - 0
client/CServerHandler.cpp

@@ -17,6 +17,7 @@
 
 
 #include "lobby/CSelectionBase.h"
 #include "lobby/CSelectionBase.h"
 #include "lobby/CLobbyScreen.h"
 #include "lobby/CLobbyScreen.h"
+#include "windows/InfoWindows.h"
 
 
 #include "mainmenu/CMainMenu.h"
 #include "mainmenu/CMainMenu.h"
 
 
@@ -166,6 +167,7 @@ void CServerHandler::startLocalServerAndConnect()
 	{
 	{
 		CConnection testConnection(settings["server"]["server"].String(), getDefaultPort(), NAME, uuid);
 		CConnection testConnection(settings["server"]["server"].String(), getDefaultPort(), NAME, uuid);
 		logNetwork->error("Port is busy, kill other vcmiserver processes");
 		logNetwork->error("Port is busy, kill other vcmiserver processes");
+		CInfoWindow::showInfoDialog("Port is busy, kill other vcmiserver processes", CInfoWindow::TCompsInfo(), PlayerColor(1));
 		return;
 		return;
 	}
 	}
 	catch(...)
 	catch(...)