From: Joshua Grams Date: Mon, 4 Jul 2005 13:08:35 +0000 (+0000) Subject: poking some changes back into 0.3 before anyone notices. :) X-Git-Tag: 0.3~1 X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=commitdiff_plain;h=ad299216a04916210587c3b0f377c1ce9076b94a;ds=sidebyside poking some changes back into 0.3 before anyone notices. :) --- diff --git a/config.h b/config.h index c815082..052a2f8 100644 --- a/config.h +++ b/config.h @@ -3,7 +3,7 @@ #define debug(x) if(DEBUG) { x; } -#define VERSION "0.4pre" +#define VERSION "0.3" #define DATA_PREFIX "/usr/share/vor" // screen size diff --git a/rocks.c b/rocks.c index 59b4016..76663c6 100644 --- 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; - 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;