[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldmap worldmap.cxx,1.22,1.23
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldmap worldmap.cxx,1.22,1.23 |
Date: |
15 Oct 2002 22:23:01 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/worldmap
In directory dark:/tmp/cvs-serv8540/worldmap
Modified Files:
worldmap.cxx
Log Message:
added some missing return value checks
Index: worldmap.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldmap/worldmap.cxx,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- worldmap.cxx 15 Oct 2002 15:48:49 -0000 1.22
+++ worldmap.cxx 15 Oct 2002 22:22:59 -0000 1.23
@@ -210,7 +210,10 @@
if (dot)
{
std::cout << "Clicked on: " << dot->get_name() << std::endl;
- pingus->walk_to_node(path_graph->lookup_node(dot->get_name()));
+ if (!pingus->walk_to_node(path_graph->lookup_node(dot->get_name())))
+ {
+ std::cout << "NO PATH TO NODE FOUND!" << std::endl;
+ }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldmap worldmap.cxx,1.22,1.23,
grumbel <=