diff Xcode/TemplatesForXcode/SDL OpenGL Application/atlantis/swim.c @ 2213:59a667370c57

make indent
author Bob Pendleton <bob@pendleton.com>
date Tue, 24 Jul 2007 18:46:45 +0000
parents d63e9f5944ae
children 4d2d0548f5b2
line wrap: on
line diff
--- a/Xcode/TemplatesForXcode/SDL OpenGL Application/atlantis/swim.c	Mon Jul 23 18:46:09 2007 +0000
+++ b/Xcode/TemplatesForXcode/SDL OpenGL Application/atlantis/swim.c	Tue Jul 24 18:46:45 2007 +0000
@@ -35,7 +35,7 @@
  * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
  */
 #include <math.h>
-#include <stdlib.h>  /* For rand(). */
+#include <stdlib.h>             /* For rand(). */
 #include <GLUT/glut.h>
 #include "atlantis.h"
 
@@ -57,8 +57,10 @@
     fish->theta = 0.0;
     fish->psi -= 0.5;
 
-    fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
-    fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
+    fish->x +=
+        WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
+    fish->y +=
+        WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
     fish->z += WHALESPEED * fish->v * sin(fish->theta / RAD);
 }
 
@@ -152,8 +154,10 @@
         }
     }
 
-    fish->x += SHARKSPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
-    fish->y += SHARKSPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
+    fish->x +=
+        SHARKSPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD);
+    fish->y +=
+        SHARKSPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD);
     fish->z += SHARKSPEED * fish->v * sin(fish->theta / RAD);
 }