[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui board.cpp,1.100,1.101

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

Modified Files:
	board.cpp 
Log Message:
jumpToken cancels animation from moveToken

Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.cpp,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- board.cpp	29 Nov 2002 04:27:31 -0000	1.100
+++ board.cpp	14 Dec 2002 00:48:10 -0000	1.101
@@ -235,6 +235,13 @@
 
 	QPoint tGeom = calculateTokenDestination(token);
 	token->setGeometry(tGeom.x(), tGeom.y(), token->width(), token->height());
+
+	if (token == m_movingToken)
+	{
+		m_timer->stop();
+		m_movingToken = 0;
+	}
+
 	emit tokenConfirmation(token->location());
 }
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.