[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.65.4.9,1.65.4.10

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

Modified Files:
      Tag: KDE_3_1_BRANCH
	atlantik_network.cpp 
Log Message:
backport of token animation fixes

Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.65.4.9
retrieving revision 1.65.4.10
diff -u -d -r1.65.4.9 -r1.65.4.10
--- atlantik_network.cpp	21 Jan 2003 02:36:42 -0000	1.65.4.9
+++ atlantik_network.cpp	31 Jan 2003 06:24:39 -0000	1.65.4.10
@@ -461,8 +461,13 @@
 						if (!a.isNull())
 							directMove = a.value().toInt();
 
-						if (estate)
-							player->setLocation(estate);
+						if (player && estate)
+						{
+							if (directMove)
+								player->setLocation(estate);
+							else
+								player->setDestination(estate);
+						}
 					}
 
 					// Emit signal so GUI implementations can create view(s)
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.