[Avida-SVN] r3038 - branches/movement/source/main
welsberr at myxo.css.msu.edu
welsberr at myxo.css.msu.edu
Sun Dec 14 17:51:45 PST 2008
Author: welsberr
Date: 2008-12-14 20:51:44 -0500 (Sun, 14 Dec 2008)
New Revision: 3038
Modified:
branches/movement/source/main/cPopulation.cc
Log:
Fix for cPopulation::Tumble bug
Modified: branches/movement/source/main/cPopulation.cc
===================================================================
--- branches/movement/source/main/cPopulation.cc 2008-12-14 21:25:45 UTC (rev 3037)
+++ branches/movement/source/main/cPopulation.cc 2008-12-15 01:51:44 UTC (rev 3038)
@@ -714,8 +714,8 @@
// @WRE: Randomize facing if it isn't exactly the same as before
if ((!success) && dest_cell.IsOccupied()) {
if (0 != m_world->GetConfig().BIOMIMETIC_MOVEMENT_STEP.Get()) {
- Tumble(src_cell.GetOrganism());
- }
+ Tumble(dest_cell.GetOrganism());
+ }
}
// Debugging output LMG
//cout << "In MoveOrganisms... Facing ' " << newFacing << endl;
More information about the Avida-cvs
mailing list