You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (phenotype.cell_interactions.pAttackTarget==pTest || pTest->phenotype.cell_interactions.pAttackTarget==pCell) // do not let attackers detach randomly
for( int j=0; j < pCell->state.spring_attachments.size(); j++ )
1469
+
// detach_cells_as_spring swaps the detached cell with the last cell in the vector, so we need to iterate backwards
1470
+
for( int j=pCell->state.spring_attachments.size()-1; j >= 0; j-- )
1471
1471
{
1472
-
Cell* pTest = pCell->state.spring_attachments[j];
1472
+
Cell* pTest = pCell->state.spring_attachments[j];
1473
+
if (phenotype.cell_interactions.pAttackTarget==pTest || pTest->phenotype.cell_interactions.pAttackTarget==pCell) // do not let attackers detach randomly
0 commit comments