diff test/putenemy.c @ 674:68d70527b0c0

*** empty log message ***
author kono
date Sat, 05 May 2007 13:45:55 +0900
parents 442e90958386
children c2c709727221
line wrap: on
line diff
--- a/test/putenemy.c	Sat May 05 08:10:56 2007 +0900
+++ b/test/putenemy.c	Sat May 05 13:45:55 2007 +0900
@@ -27,7 +27,7 @@
     }
 }
 
-int Mycos(int c)
+int Mycos0(int c)
 {
     c%=360;
     if(c<0) c+=360;
@@ -38,7 +38,12 @@
     return(0);
 }
 
-int Mysin(int c)
+int Mycos(int c) {
+    printf("Mycos %d=%d\n",c,Mycos0(c));
+    return Mycos0(c);
+}
+
+int Mysin0(int c)
 {
     c%=360;
     if(c<0) c+=360;
@@ -49,6 +54,11 @@
     return(0);
 }
 
+int Mysin(int c) {
+    printf("Mysin %d=%d\n",c,Mysin0(c));
+    return Mysin0(c);
+}
+
 void
 Putenemy(int charno,float x,float y,float sx,float sy,int move) {
      if(x)
@@ -60,6 +70,7 @@
 main()
 {
      int ix=32,iy=32; float fx=32,fy=32;
+     srand(55555);
      sankakuf();
      printf("#0060:%d %d\n", Mysin(45),Mycos(-30));
      {