[Avida-SVN] r2808 - branches/hjg-dev/source/main

hjg at myxo.css.msu.edu hjg at myxo.css.msu.edu
Tue Sep 30 00:46:28 PDT 2008


Author: hjg
Date: 2008-09-30 03:46:28 -0400 (Tue, 30 Sep 2008)
New Revision: 2808

Modified:
   branches/hjg-dev/source/main/cTaskLib.cc
Log:
Modified Task_UseRawMaterials to depend on the amount of raw materials received.

Modified: branches/hjg-dev/source/main/cTaskLib.cc
===================================================================
--- branches/hjg-dev/source/main/cTaskLib.cc	2008-09-29 22:26:23 UTC (rev 2807)
+++ branches/hjg-dev/source/main/cTaskLib.cc	2008-09-30 07:46:28 UTC (rev 2808)
@@ -3070,7 +3070,7 @@
 	double bonus = 0.0;
 	if ((ctx.GetOrganism()->GetSelfRawMaterials() > 1) && 
 		(ctx.GetOrganism()->GetOtherRawMaterials() > 1)) {
-		 bonus = 1.0; 
+		 bonus = ctx.GetOrganism()->GetOtherRawMaterials(); 
 	}
 	return bonus;
 }




More information about the Avida-cvs mailing list