From 9c233e7bc17d9d24ad793d2552b3d246094545d3 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Sun, 19 Aug 2012 18:03:46 +0800 Subject: [PATCH 1/1] Fix --- course/semester2/pprog/assignment0/main.c | 2 +- course/semester2/pprog/assignment0/nbody.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1