[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui board.cpp,1.96.6.5,1.96.6.6
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv8410
Modified Files:
Tag: KDE_3_1_BRANCH
board.cpp
Log Message:
backport: fix #54466
Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.cpp,v
retrieving revision 1.96.6.5
retrieving revision 1.96.6.6
diff -u -d -r1.96.6.5 -r1.96.6.6
--- board.cpp 8 Feb 2003 14:44:56 -0000 1.96.6.5
+++ board.cpp 12 Feb 2003 03:06:12 -0000 1.96.6.6
@@ -255,6 +255,13 @@
QPoint tGeom = calculateTokenDestination(token);
token->setGeometry(tGeom.x(), tGeom.y(), token->width(), token->height());
+
+ if (Player *player = token->player())
+ {
+ player->setLocation(token->location());
+ player->setDestination(0);
+ }
+
if (token->isHidden())
token->show();