[Avida-SVN] r1241 - branches/uml/source/main
hjg at myxo.css.msu.edu
hjg at myxo.css.msu.edu
Tue Jan 30 10:43:46 PST 2007
Author: hjg
Date: 2007-01-30 13:43:46 -0500 (Tue, 30 Jan 2007)
New Revision: 1241
Modified:
branches/uml/source/main/cOrganism.cc
Log:
The source must be connected.
Modified: branches/uml/source/main/cOrganism.cc
===================================================================
--- branches/uml/source/main/cOrganism.cc 2007-01-30 18:31:27 UTC (rev 1240)
+++ branches/uml/source/main/cOrganism.cc 2007-01-30 18:43:46 UTC (rev 1241)
@@ -853,11 +853,9 @@
bool cOrganism::AddTransConnect(int trans, int orig, int dest)
{
// find either the orig int or the dest int in the map of states & names
- /* if(grade_list.find("Tim") == grade_list.end())
-{
- std::cout<<"Tim is not in the map!"<<endl;
-}*/
- if ((states.find(orig) == states.end()) && (states.find(dest) == states.end()))
+
+ // originally thought that either orig or dest could be connected, but actually, must be orig.
+ if (states.find(orig) == states.end()) // && (states.find(dest) == states.end()))
{
return false;
}
More information about the Avida-cvs
mailing list