From fb3ced76367bfe5f98beba0d04ac1322563ea394 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Sun, 19 Aug 2012 17:28:35 +0800 Subject: [PATCH] Stop collisions from happening Can't be bothered to remove the functions. Just don't call them. --- course/semester2/pprog/assignment0/nbody.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.20.1