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-861f7616d084master
parent
751c5623c6
commit
7eaecb9d24
|
@ -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
|
||||
|
|
|
@ -6464,7 +6464,7 @@ BOOL scrSetDroidKills(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
psDroid->experience = (UWORD)kills * 100;
|
||||
psDroid->experience = (float)kills * 100.0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue