X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=course%2Fsemester2%2Fpprog%2Fassignment0%2Fnbody.c;h=e860cdf4208da45557535c5c62c359640384e937;hb=fb3ced76367bfe5f98beba0d04ac1322563ea394;hp=d23b134a2f1da41275e0b009eaf7db3774185af1;hpb=5c2d7b67017f782e69762155083bae10c10ac101;p=matches%2Fhonours.git 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)