From: Sam Moore Date: Sun, 19 Aug 2012 09:28:35 +0000 (+0800) Subject: Stop collisions from happening X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=fb3ced76367bfe5f98beba0d04ac1322563ea394;p=matches%2Fhonours.git Stop collisions from happening Can't be bothered to remove the functions. Just don't call them. --- diff --git a/course/semester2/pprog/assignment0/nbody.c b/course/semester2/pprog/assignment0/nbody.c index d23b134a..e860cdf4 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 0; //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)