Fix a couple compiler warnings about floats (or lack thereof)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8747 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-12-19 01:18:06 +00:00 committed by Git SVN Gateway
parent 751c5623c6
commit 7eaecb9d24
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ static float QualityFactor(DROID *psAttacker, DROID *psVictim)
CLIP(powerRatio, 0.5, 2.0);
CLIP(pointsRatio, 0.5, 2.0);
return (powerRatio + pointsRatio) / 2;
return (powerRatio + pointsRatio) / 2.0;
}
// update the kills after a target is damaged/destroyed

View File

@ -6464,7 +6464,7 @@ BOOL scrSetDroidKills(void)
return false;
}
psDroid->experience = (UWORD)kills * 100;
psDroid->experience = (float)kills * 100.0;
return true;
}