[Avida-SVN] r2353 - branches/energy/source/cpu

beckma24 at myxo.css.msu.edu beckma24 at myxo.css.msu.edu
Thu Feb 21 08:43:48 PST 2008


Author: beckma24
Date: 2008-02-21 11:43:48 -0500 (Thu, 21 Feb 2008)
New Revision: 2353

Modified:
   branches/energy/source/cpu/cHardwareCPU.cc
Log:
Added missing return statements to HardwareCPU instructions

Modified: branches/energy/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/energy/source/cpu/cHardwareCPU.cc	2008-02-21 15:51:44 UTC (rev 2352)
+++ branches/energy/source/cpu/cHardwareCPU.cc	2008-02-21 16:43:48 UTC (rev 2353)
@@ -3335,7 +3335,7 @@
   }
 
   GetRegister(reg_to_set) = val;
-
+  return true;
 } //End Inst_SenseTarget()
 
 
@@ -4105,16 +4105,19 @@
 bool cHardwareCPU::Inst_PheroOn(cAvidaContext& ctx)
 {
   organism->SetPheromone(true);
+  return true;
 } //End Inst_PheroOn()
 
 bool cHardwareCPU::Inst_PheroOff(cAvidaContext& ctx)
 {
   organism->SetPheromone(false);
+  return true;
 } //End Inst_PheroOff()
 
 bool cHardwareCPU::Inst_PheroToggle(cAvidaContext& ctx)
 {
   organism->TogglePheromone();
+  return true;
 } //End Inst_PheroToggle()
 
 




More information about the Avida-cvs mailing list