[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.63,1.64 atlantik_network.h,1.33,1.34

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

Modified Files:
	atlantik_network.cpp atlantik_network.h 
Log Message:
bugfix: completed != accepted in API

Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- atlantik_network.cpp	2002/10/23 18:05:55	1.63
+++ atlantik_network.cpp	2002/10/23 19:18:19	1.64
@@ -655,13 +655,13 @@
 						}
 					}
 					else if (type=="accepted" && trade)
+						emit msgTradeUpdateAccepted(trade);
+					else if (type=="completed" && trade)
 					{
 						m_atlanticCore->removeTrade(trade);
 						m_trades[tradeId] = 0;
 						trade = 0;
 					}
-					else if (type=="completed" && trade)
-						emit msgTradeUpdateCompleted(trade);
 					else if (type=="rejected")
 					{
 						Player *player = m_playerMap[e.attributeNode(QString("actor")).value().toInt()];

Index: atlantik_network.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- atlantik_network.h	2002/10/23 15:56:41	1.33
+++ atlantik_network.h	2002/10/23 19:18:19	1.34
@@ -145,7 +145,7 @@
 	 *
 	 * @param trade Trade
 	 */
-	void msgTradeUpdateCompleted(Trade *trade);
+	void msgTradeUpdateAccepted(Trade *trade);
 
 	/**
 	 * One of the players rejected the trade and the trade object has been
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.