pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/worldmap pingus.cxx,1.19,1.20


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldmap pingus.cxx,1.19,1.20
Date: 15 Oct 2002 22:09:57 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/worldmap
In directory dark:/tmp/cvs-serv7578/worldmap

Modified Files:
        pingus.cxx 
Log Message:
added missing check for self references

Index: pingus.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldmap/pingus.cxx,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- pingus.cxx  15 Oct 2002 21:48:43 -0000      1.19
+++ pingus.cxx  15 Oct 2002 22:09:55 -0000      1.20
@@ -86,7 +86,11 @@
 bool
 Pingus::walk_to_node (NodeId target)
 {
-  if (current_node != NoNode) // pingu stands still
+  if (current_node == target)
+    {
+      // do nothing
+    }
+  else if (current_node != NoNode) // pingu stands still
     {
       const PathfinderResult& res = path->get_path (current_node, target);
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]