[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.84,1.85

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

Modified Files:
	atlantik_network.cpp 
Log Message:
allow player to be removed from trade

Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- atlantik_network.cpp	8 Feb 2003 15:36:03 -0000	1.84
+++ atlantik_network.cpp	9 Jun 2003 18:25:45 -0000	1.85
@@ -262,6 +262,7 @@
 	}
 	QDomNode n = e.firstChild();
 	processNode(n);
+	m_atlanticCore->printDebug();
 }
 
 void AtlantikNetwork::processNode(QDomNode n)
@@ -670,7 +671,10 @@
 							{
 								Player *player = m_atlanticCore->findPlayer(e_player.attributeNode(QString("playerid")).value().toInt());
 								if (trade && player)
+								{
 									trade->addPlayer(player);
+									QObject::connect(m_atlanticCore, SIGNAL(removePlayer(Player *)), trade, SLOT(removePlayer(Player *)));
+								}
 							}
 							n_player = n_player.nextSibling();
 						}
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.