JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
poking some changes back into 0.3 before anyone notices. :)
authorJoshua Grams <josh@qualdan.com>
Mon, 4 Jul 2005 13:08:35 +0000 (13:08 +0000)
committerJoshua Grams <josh@qualdan.com>
Mon, 4 Jul 2005 13:08:35 +0000 (13:08 +0000)
config.h
rocks.c

index c815082..052a2f8 100644 (file)
--- a/config.h
+++ b/config.h
@@ -3,7 +3,7 @@
 
 #define debug(x) if(DEBUG) { x; }
 
 
 #define debug(x) if(DEBUG) { x; }
 
-#define VERSION "0.4pre"
+#define VERSION "0.3"
 #define DATA_PREFIX "/usr/share/vor"
 
 // screen size
 #define DATA_PREFIX "/usr/share/vor"
 
 // screen size
diff --git a/rocks.c b/rocks.c
index 59b4016..76663c6 100644 (file)
--- a/rocks.c
+++ b/rocks.c
@@ -88,7 +88,7 @@ rock_sides(float *ti, float *speed_min, float *speed_max)
        for(i=0; i<4; i++) ti[i] = 0;
        for(i=0; i<4; i++) speed_min[i] = 0;
        for(i=0; i<4; i++) speed_max[i] = 0;
        for(i=0; i<4; i++) ti[i] = 0;
        for(i=0; i<4; i++) speed_min[i] = 0;
        for(i=0; i<4; i++) speed_max[i] = 0;
-       hfactor = nrocks/KH; vfactor = nrocks/KV;
+       hfactor = (float)nrocks/KH; vfactor = (float)nrocks/KV;
 
        dx0 = -RDX - screendx; dx1 = RDX - screendx;
        dy0 = -RDY - screendy; dy1 = RDY - screendy;
 
        dx0 = -RDX - screendx; dx1 = RDX - screendx;
        dy0 = -RDY - screendy; dy1 = RDY - screendy;