[atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.121.6.12,1.121.6.13

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv16782/client

Modified Files:
      Tag: KDE_3_1_BRANCH
	atlantik.cpp 
Log Message:
backport: reset complete core when going to the select server page

Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.121.6.12
retrieving revision 1.121.6.13
diff -u -d -r1.121.6.12 -r1.121.6.13
--- atlantik.cpp	17 Jun 2003 18:15:23 -0000	1.121.6.12
+++ atlantik.cpp	17 Jun 2003 19:55:41 -0000	1.121.6.13
@@ -220,6 +220,7 @@
 	m_selectServer = new SelectServer(m_mainWidget, "selectServer");
 	m_mainLayout->addMultiCellWidget(m_selectServer, 0, 2, 1, 1);
 	m_selectServer->show();
+
 	if (m_selectGame)
 	{
 		disconnect(m_atlantikNetwork, SIGNAL(gameListClear()), m_selectGame, SLOT(slotGameListClear()));
@@ -227,6 +228,10 @@
 		delete m_selectGame;
 		m_selectGame = 0;
 	}
+
+	m_atlanticCore->reset(true);
+	m_playerSelf = 0;
+
 	initNetworkObject();
 
 	connect(m_atlantikNetwork, SIGNAL(gameListClear()), this, SLOT(showSelectGame()));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.