Stop collisions from happening
authorSam Moore <sam@daedalus.(none)>
Sun, 19 Aug 2012 09:28:35 +0000 (17:28 +0800)
committerSam Moore <sam@daedalus.(none)>
Sun, 19 Aug 2012 09:28:35 +0000 (17:28 +0800)
Can't be bothered to remove the functions. Just don't call them.

course/semester2/pprog/assignment0/nbody.c

index d23b134..e860cdf 100644 (file)
@@ -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)

UCC git Repository :: git.ucc.asn.au