[atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.145,1.146
[email protected] Tue, 17 Jun 2003 21:54:37 +0200 (CEST)
Newsgroups
gmane.comp.kde.devel.atlantik
Message-ID
<[email protected] >
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv16711/client
Modified Files:
atlantik.cpp
Log Message:
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.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- atlantik.cpp 17 Jun 2003 18:14:05 -0000 1.145
+++ atlantik.cpp 17 Jun 2003 19:54:35 -0000 1.146
@@ -229,6 +229,7 @@
m_selectServer = new SelectServer(m_config.connectOnStart, 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()));
@@ -236,6 +237,10 @@
delete m_selectGame;
m_selectGame = 0;
}
+
+ m_atlanticCore->reset(true);
+ m_playerSelf = 0;
+
initNetworkObject();
connect(m_atlantikNetwork, SIGNAL(gameListClear()), this, SLOT(showSelectGame()));