[Avida-SVN] r3063 - branches/hjg-dev/source/cpu

hjg at myxo.css.msu.edu hjg at myxo.css.msu.edu
Fri Dec 19 06:49:39 PST 2008


Author: hjg
Date: 2008-12-19 09:49:38 -0500 (Fri, 19 Dec 2008)
New Revision: 3063

Modified:
   branches/hjg-dev/source/cpu/cHardwareCPU.cc
Log:
different reputation setting.

Modified: branches/hjg-dev/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/hjg-dev/source/cpu/cHardwareCPU.cc	2008-12-18 22:06:03 UTC (rev 3062)
+++ branches/hjg-dev/source/cpu/cHardwareCPU.cc	2008-12-19 14:49:38 UTC (rev 3063)
@@ -7425,7 +7425,7 @@
 			if (strings_to_match.size()) len = strings_to_match[0].GetSize();
 		//	organism->SetAverageReputation(max);
 			int rep = (max - floor(len/2));
-			if (rep > 0) organism->AddReputation(rep);
+			if (rep > 0) organism->SetAverageReputation(rep);
 		
 		
 		}




More information about the Avida-cvs mailing list