aboutsummaryrefslogtreecommitdiff
path: root/src/poser_charlesslow.c
diff options
context:
space:
mode:
authorCNLohr <lohr85@gmail.com>2017-03-17 01:08:06 -0400
committerCNLohr <lohr85@gmail.com>2017-03-17 01:08:06 -0400
commit8ea24c306fdf2a141433e396307e92a227416ba5 (patch)
treee5c33347f918547acafd0770cce45bced41ef89e /src/poser_charlesslow.c
parentc9be7c057aa9570d0f67109c87b74e3aab640322 (diff)
downloadlibsurvive-8ea24c306fdf2a141433e396307e92a227416ba5.tar.gz
libsurvive-8ea24c306fdf2a141433e396307e92a227416ba5.tar.bz2
Fix Warnings
Diffstat (limited to 'src/poser_charlesslow.c')
-rw-r--r--src/poser_charlesslow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/poser_charlesslow.c b/src/poser_charlesslow.c
index def8323..080ad6a 100644
--- a/src/poser_charlesslow.c
+++ b/src/poser_charlesslow.c
@@ -123,9 +123,9 @@ int PoserCharlesSlow( SurviveObject * so, PoserData * pd )
ft = RunOpti(so, fs, lh, 0, LighthousePos, LighthouseQuat);
if( cycle == 0 )
{
- float sk = ft*10.;
+ FLT sk = ft*10.;
if( sk > 1 ) sk = 1;
- uint8_t cell = (1.0 - sk) * 255;
+ uint8_t cell = (uint8_t)((1.0 - sk) * 255);
FLT epsilon = 0.1;
if( dz == 0 ) { /* Why is dz special? ? */
@@ -231,7 +231,7 @@ static FLT RunOpti( SurviveObject * hmd, PoserDataFullScene * fs, int lh, int pr
if( fs->lengths[p][lh][0] < 0 || fs->lengths[p][lh][1] < 0 ) continue;
FLT me_to_dot[3];
sub3d( me_to_dot, LighthousePos, &hmd_points[p*3] );
- float dot = dot3d( &hmd_normals[p*3], me_to_dot );
+ FLT dot = dot3d( &hmd_normals[p*3], me_to_dot );
if( dot < -.01 ) { return 1000; }
}
int iters = 6;
@@ -321,7 +321,7 @@ static FLT RunOpti( SurviveObject * hmd, PoserDataFullScene * fs, int lh, int pr
}
//Step 2: Determine error.
- float errorsq = 0.0;
+ FLT errorsq = 0.0;
int count = 0;
for( p = 0; p < dpts; p++ )
{