From 60bc5dcb19a983e8ae335ba89f860c59473303fb Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 12 Feb 2017 08:42:55 -0600 Subject: -added DNA combining, currently it just takes the average of the mother and father -there maybe a random segfault, further investigation is needed --- src/list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/list.cpp') diff --git a/src/list.cpp b/src/list.cpp index 0439278..4f2ddc4 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -43,7 +43,7 @@ void List::Behavior() it->Behavior(); if(it->getPregnancyReady()){ - Dna D = it->getDNA(); + Dna D = it->getChildDNA(); SDL_Rect Rect = it->getRect(); Rect.h = Rect.w = D.sizeMax / 5; Creature X(main,Rect,D); -- cgit v1.2.3