[Avida-SVN] r1242 - branches/uml/source/main
hjg at myxo.css.msu.edu
hjg at myxo.css.msu.edu
Wed Jan 31 19:56:11 PST 2007
Author: hjg
Date: 2007-01-31 22:56:11 -0500 (Wed, 31 Jan 2007)
New Revision: 1242
Modified:
branches/uml/source/main/cOrganism.cc
Log:
Modified: branches/uml/source/main/cOrganism.cc
===================================================================
--- branches/uml/source/main/cOrganism.cc 2007-01-30 18:43:46 UTC (rev 1241)
+++ branches/uml/source/main/cOrganism.cc 2007-02-01 03:56:11 UTC (rev 1242)
@@ -100,12 +100,14 @@
if (m_world->GetConfig().NET_ENABLED.Get()) m_net = new cNetSupport();
m_id = m_world->GetStats().GetTotCreatures();
-
+
+/*
// create in-memory representation of model
AddTrans(0,0,1);
AddTrans(1,1,2);
AddTrans(2,2,3);
AddTrans(3,3,1);
+*/
}
@@ -855,7 +857,7 @@
// find either the orig int or the dest int in the map of states & names
// 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()))
+ if ((states.find(orig) == states.end()) && (NumStates()>0)) // && (states.find(dest) == states.end()))
{
return false;
}
More information about the Avida-cvs
mailing list