From 1da46794f74ebd8f445fcd70cbe0420eadb648e4 Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 12 Feb 2017 07:57:21 -0600 Subject: -removed grouping --- src/list.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/list.cpp') diff --git a/src/list.cpp b/src/list.cpp index edf3063..0439278 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -38,7 +38,7 @@ void List::Remove() void List::Behavior() { for(std::list::iterator it = C.begin(); it!=C.end(); it++){ - std::list N = getNear(*it); + std::vector N = getNear(*it); it->giveN(N); it->Behavior(); @@ -71,9 +71,9 @@ void List::Place() it->Place(); } -std::list List::getNear(Creature nC) +std::vector List::getNear(Creature nC) { - std::list N; + std::vector N; for(std::list::iterator it = R.begin(); it!=R.end(); it++) if( nC.getBestSense() > Distance(nC.getRect(),it->getRect()) ) -- cgit v1.2.3