Automatic commit. Tue Oct 9 00:00:05 WST 2012
[matches/honours.git] / course / semester2 / pprog / assignment0 / main.c
index d355687..58eff2f 100644 (file)
@@ -22,7 +22,7 @@ int main(int argc, char ** argv)
                Graphics_Init("N-Body", 640, 480);
        #endif //_GRAPHICS_H
 
-       for (unsigned a = 0; a < 100; ++a)
+       for (unsigned a = 0; a < 2; ++a)
        {
                float m = ((float)(rand() % 100))/1000.0;
                float x[DIMENSIONS];
@@ -34,7 +34,7 @@ int main(int argc, char ** argv)
                }
                System_AddBody(&system, m, x, v);
        }
-       System_AddBody(&system, 1.1, (float[2]){0,0}, (float[2]){0,0});
+       System_AddBody(&system, 1.0, (float[2]){0,0}, (float[2]){0,0});
 
        while (true)
        {

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