Quick fix for float truncation

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@788 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2006-10-10 09:58:14 +00:00
parent c661f0ce15
commit a07ae17982
1 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ void kf_RecalcLighting( void )
/* Raises the 3dfx gamma value */
void kf_RaiseGamma( void )
{
gammaValue += 0.05f;
gammaValue += 0.050001f; // 0.05 get's sometimes truncated due to float type
pie_SetGammaValue(gammaValue);
}
@ -434,7 +434,7 @@ void kf_RaiseGamma( void )
/* Lowers the threedfx gamma value */
void kf_LowerGamma( void )
{
gammaValue -= 0.05f;
gammaValue -= 0.049999f; // 0.05 get's sometimes truncated due to float type
pie_SetGammaValue(gammaValue);
}