[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    [atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp, 1.171,
From:       kde () office ! kde ! org
Date:       2004-10-08 9:36:07
Message-ID: 41665F87.mail1NR11B0JI () office ! kde ! org
[Download RAW message or body]

Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv2118/client

Modified Files:
	atlantik.cpp 
Log Message:
New-patches: rob@unixcode.org--2004/atlantik--mainline--0.8--patch-44
Summary: bugfix: auto-join game after handshake instead of connection
Keywords: 

Fixes accepting invitations that have a game specified.


Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -d -r1.171 -r1.172
--- atlantik.cpp	6 Oct 2004 09:42:31 -0000	1.171
+++ atlantik.cpp	8 Oct 2004 09:36:04 -0000	1.172
@@ -433,12 +433,6 @@
 
 void Atlantik::slotNetworkConnected()
 {
-	// Check command-line args to see if we need to auto-join
-	KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
-
-	QCString game = args->getOption("game");	
-	if (!game.isNull())
-		m_atlantikNetwork->joinGame(game.toInt());
 }
 
 void Atlantik::slotNetworkError(int errnum)
@@ -774,6 +768,13 @@
 void Atlantik::sendHandshake()
 {
 	m_atlantikNetwork->setName(m_config.playerName);
+
+	// Check command-line args to see if we need to auto-join
+	KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+
+	QCString game = args->getOption("game");	
+	if (!game.isNull())
+		m_atlantikNetwork->joinGame(game.toInt());
 }
 
 void Atlantik::statusBarClick(int item)

_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@kde.org
https://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic