From: Sam Moore Date: Sun, 19 Aug 2012 10:03:46 +0000 (+0800) Subject: Fix X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9c233e7bc17d9d24ad793d2552b3d246094545d3;p=matches%2Fhonours.git Fix --- diff --git a/course/semester2/pprog/assignment0/main.c b/course/semester2/pprog/assignment0/main.c index a0d46717..58eff2f5 100644 --- a/course/semester2/pprog/assignment0/main.c +++ b/course/semester2/pprog/assignment0/main.c @@ -40,7 +40,7 @@ int main(int argc, char ** argv) { System_Step(&system); - System_WriteData(&system, stdout); + //System_WriteData(&system, stdout); #ifdef _GRAPHICS_H Graphics_Clear(1, 1, 1); //Clear screen System_Draw(&system); //Draw system diff --git a/course/semester2/pprog/assignment0/nbody.c b/course/semester2/pprog/assignment0/nbody.c index e860cdf4..d8153d75 100644 --- a/course/semester2/pprog/assignment0/nbody.c +++ b/course/semester2/pprog/assignment0/nbody.c @@ -328,7 +328,7 @@ void System_Step(System * system) } - return 0; + return; //Check for collisions //Note: Only allows for one collision per step