[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui board.cpp,1.96.6.6,1.96.6.7 board.h,1.59.6.2,1.59.6.3

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

Modified Files:
      Tag: KDE_3_1_BRANCH
	board.cpp board.h 
Log Message:
backport: delete token when player is deleted

Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.cpp,v
retrieving revision 1.96.6.6
retrieving revision 1.96.6.7
diff -u -d -r1.96.6.6 -r1.96.6.7
--- board.cpp	12 Feb 2003 03:06:12 -0000	1.96.6.6
+++ board.cpp	9 Jun 2003 19:12:22 -0000	1.96.6.7
@@ -246,6 +246,19 @@
 		addToken(player);
 }
 
+void AtlantikBoard::removeToken(Player *player)
+{
+	Token *token = findToken(player);
+
+	if (token == m_movingToken)
+	{
+		m_timer->stop();
+		m_movingToken = 0;
+	}
+
+	m_tokens.remove(token);
+}
+
 void AtlantikBoard::jumpToken(Token *token)
 {
 	if (!token || !token->location())

Index: board.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.h,v
retrieving revision 1.59.6.2
retrieving revision 1.59.6.3
diff -u -d -r1.59.6.2 -r1.59.6.3
--- board.h	31 Jan 2003 06:24:39 -0000	1.59.6.2
+++ board.h	9 Jun 2003 19:12:22 -0000	1.59.6.3
@@ -48,6 +48,7 @@
 	void addAuctionWidget(Auction *auction);
 
 	void addToken(Player *player);
+	void removeToken(Player *player);
 
 	void indicateUnownedChanged();
 	EstateView *findEstateView(Estate *estate);
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.