diff options
author | tom <tombarrett@siu.edu> | 2017-02-12 08:42:55 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-02-12 08:42:55 -0600 |
commit | 60bc5dcb19a983e8ae335ba89f860c59473303fb (patch) | |
tree | 6f232f9db0d71678ce593a765b88f4934976ed83 /src/list.cpp | |
parent | 1da46794f74ebd8f445fcd70cbe0420eadb648e4 (diff) |
-added DNA combining, currently it just takes the average of the mother and father
-there maybe a random segfault, further investigation is needed
Diffstat (limited to 'src/list.cpp')
-rw-r--r-- | src/list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |