[Avida-SVN] r1496 - development/source/main

jclune at myxo.css.msu.edu jclune at myxo.css.msu.edu
Sat Apr 21 05:14:54 PDT 2007


Author: jclune
Date: 2007-04-21 08:14:54 -0400 (Sat, 21 Apr 2007)
New Revision: 1496

Modified:
   development/source/main/cPhenotype.cc
Log:
fixed bug typo

Modified: development/source/main/cPhenotype.cc
===================================================================
--- development/source/main/cPhenotype.cc	2007-04-21 11:37:49 UTC (rev 1495)
+++ development/source/main/cPhenotype.cc	2007-04-21 12:14:54 UTC (rev 1496)
@@ -849,11 +849,10 @@
   case BASE_MERIT_NUM_BONUS_INST:
     if(m_world->GetConfig().FITNESS_VALLEY.Get()){
       if (bonus_instruction_count >= m_world->GetConfig().FITNESS_VALLEY_START.Get() && 
-          bonus_instruction_count <= m_world->GetConfig().FITNESS_VALLEY_START.Get()){
+          bonus_instruction_count <= m_world->GetConfig().FITNESS_VALLEY_STOP.Get()){
          out_size = 1;
          break;
-           }
-            
+      }            
     }
     if (m_world->GetConfig().MERIT_BONUS_EFFECT.Get()>0) {out_size = 1 + bonus_instruction_count;}
     else if (m_world->GetConfig().MERIT_BONUS_EFFECT.Get()<0) {out_size = genome_length - (bonus_instruction_count -1);}




More information about the Avida-cvs mailing list