diff Xcode/TemplatesForXcode/SDL OpenGL Application/atlantis/swim.c @ 2220:4d2d0548f5b2

Don't run indent on the Xcode templates
author Sam Lantinga <slouken@libsdl.org>
date Sat, 11 Aug 2007 18:51:12 +0000
parents 59a667370c57
children
line wrap: on
line diff
--- a/Xcode/TemplatesForXcode/SDL OpenGL Application/atlantis/swim.c	Fri Aug 10 16:03:35 2007 +0000
+++ b/Xcode/TemplatesForXcode/SDL OpenGL Application/atlantis/swim.c	Sat Aug 11 18:51:12 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,10 +57,8 @@
     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);
 }
 
@@ -154,10 +152,8 @@
         }
     }
 
-    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);
 }