X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=course%2Fsemester2%2Fpprog%2Fassignment0%2Fnbody.c;h=d8153d75503e4907014c366a75205591fe62754b;hb=9c233e7bc17d9d24ad793d2552b3d246094545d3;hp=d23b134a2f1da41275e0b009eaf7db3774185af1;hpb=061635c926ea8801e81f30ce52b6f9089df356f9;p=matches%2Fhonours.git diff --git a/course/semester2/pprog/assignment0/nbody.c b/course/semester2/pprog/assignment0/nbody.c index d23b134a..d8153d75 100644 --- a/course/semester2/pprog/assignment0/nbody.c +++ b/course/semester2/pprog/assignment0/nbody.c @@ -327,9 +327,12 @@ void System_Step(System * system) } + + return; //Check for collisions //Note: Only allows for one collision per step + for (unsigned a = 0; a < system->nMax; ++a) { if ((system->bodies+a)->exists == false || (system->bodies+a)->collided)